x=s='' while 1:x,s=x and(x/37,chr(-a/26*39%97-a+65)+s)or(input(s),'\n');a=~x%37