n=s='' while 1:n,s=n and(n/31-2,chr(62+n%31)+s)or(input(s)%2**32,'\n')