B=lambda n,b:b>1<n and B(n/b,b)+`n%b`or'1'*n\x0d for i in range(100):print B(i+1,i%10+1)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top