while 1:\x0d n,b=map(int,raw_input().split());s=''\x0d while n:s+=`n%b`;n/=b\x0d print s[::-1]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page