def seven_seg(x):return''.join(''.join(' _|-|'[ord('w$km<]_d}'[int(c)])>>s&m] for c in x for m in(2,1,4))+"\n"for s in(6,3,0))