r='' while 1: n=input(r)&(2**32-1);r='\n' while n: c=n%31 while c<65:c+=31 r='%c'%c+r;n=(n-c)/31