j=''.join
seven_seg=lambda x:j(j('   _ _| |_|_  |'[ord('ÆlÔ¤hªÊìÈ¨'[int(n)])>>i&14:][:3]for n in x)+'\n'for i in(6,0,3))