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