local function ord(a) return a:byte() end
local A, Z = ord('A'), ord('Z')
local LL = Z - A
local N, _, S = io.read("n", "l", "l")
S = {S:byte(1,#S)}
local t = {}
for i=1,#S do
  t[i] = string.char((S[i] - A + N) % LL + A)
end
print(table.concat(t,""))