N=list(input()) for i in range (len(N)): N[i]=int(N[i]) nd=0 i=0 M=N[i] Mj=0 #int (M) nd=0 while i0) or M