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