while~0: b=10;n,m=raw_input().split() while`int(m,b)`!=n:b-=1 print b
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page