function g() 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 local s = io.stdin:read("*l") local f = g() print(f(s))