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