def seven_seg(x):
 r=''
 for l in[[2,0,2,2,0,2,2,2,2,2],[4,1,3,3,6,5,5,1,6,6],[6,1,5,3,1,3,6,1,6,3]]:
  for c in x:r+=["   ","  |"," _ "," _|","| |","|_ ","|_|"][l[int(c)]]
  r+="\n"
 return r