x=s='' while 1:x,s=x and(x//37,chr(a+a//58*39-a//84*58)+s)or(int(input(s)),'\n');a=x%37+48