const main = inputs => {
  const n = +inputs[0]
  const s = inputs[1]
  const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ'

  if (n === 0) return console.log(s)
  
  var ans = ''
  for (var i = 0; i < s.length; i++) {
    ans += chars[chars.indexOf(s[i]) + n]
  }
  console.log(ans)
}

main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'))