print((function () local a = string.byte("a") local d = a - string.byte("A") return function (s) local r = s:gsub(".", function (e) e = string.byte(e) return e >= a and string.char(e-d) or string.char(e+d) end) return r end end)()(io.stdin:read("*l")))