j="".join;seven_seg=lambda x:j(j("  | | |___   _ || || "[d/7**int(i)%7::7]for i in x)+"\n"for d in(7224,97166500,56265708))