'use strict';
const main = input => {
  const n = parseInt(input[0]);
  const s = input[1];
  console.log(n, s);
  console.log(s.charCodeAt(0));
  console.log(String.fromCharCode(s.charCodeAt(0)+2));
  let ans = '';
  for(let i=0; i<s.length; i++) {
    if (s.charCodeAt(i)+n > 'Z'.charCodeAt(0)) {
      ans += String.fromCharCode(s.charCodeAt(i)+n-26)
    } else {
      ans += String.fromCharCode(s.charCodeAt(i)+n);
    }
  }
  console.log(ans);
  
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));