io.write((function (fh, b, c) local s,j,A,a = fh:read("*l"),b("A"),b("A"),{} for i=1,#s do j=j+1 a[i]=c(A+(b(s:sub(i,i))-j)%26) end a[#s+1]="\n" return unpack(a) end)(io.stdin, string.byte, string.char))