def t(n,b): if b==1:return '1'*n s="" while n: s=str(n%b)+s n=n/b return s for n in range(1,101): print t(n,(n%10) or 10)