#207 world’s #A,B=(i for i in input().split()) A,B=input().split() Al=list(A) Bl=list(B) def ct(li): i=0 r=0 while r==0 and i0 and li3[j]==10: if j==0: li3=[1]+li3 else: li3[j-1]+=1 li3[j]=0 j-=1 #桁増え return li3 Ai=[0]*len(Al) for i in range (len(Al)): Ai[i]=int(Al[i]) #i=int(B) d=int(B)-int(A) def cl(lis): ou="" # print ("cl1") for i in range (len(lis)): # print ("cl") ou+=str(lis[i]) return ou for i in range(d+1): if tt(Ai)==1: print(cl(Ai)) elif ct(Ai)==1: print(cl(Ai)) Ai=po(Ai) #1足していく5