j=''.join
seven_seg=lambda s:j(j(' |   ||___   _ ||| | '[t/7**int(x)%7::7]for x in s)+'\n'for t in[9632,49398984,89102112])