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