j=''.join;seven_seg=lambda x:j(j(' _ _|_| |_    |'[r>>3*int(i)&14:][:3]for i in x)+'\n'for r in(41040,631522534,361875044))