def l(x,y):
 s=''
 for d in x:s+=y[int(d)]
 return s+'\n'
def seven_seg(x):a=[' _ ','   ',' _ ',' _ ','   ',' _ ',' _ ',' _ ',' _ ',' _ '];b=['| |','  |',' _|',' _|','|_|','|_ ','|_ ','  |','|_|','|_|'];c=['|_|','  |','|_ ',' _|','  |',' _|','|_|','  |','|_|',' _|'];return l(x,a)+l(x,b)+l(x,c)
