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