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