j=''.join;seven_seg=lambda s:j(j(' _    |_ _|_| |'[2*ord('5R#$j-,'[int(c)])>>l&14:][:3]for c in s)+'\n'for l in(6,3,0))