'use strict'
function Main(input) {
    input = input.split('\n');
  	let arrChar = input[1].split('');
  	let num = input[0];
  	let arr = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N',
              'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
	let changedArr = [];
	for(let i = 0; i < arrChar.length; i++) {
      	let changedNum = arr.indexOf(arrChar[i]) + Number(num)
    	let changedChar = arr[changedNum];
      	let overNum = arr[changedNum-26];
      	if(changedNum < 25) {
        	changedArr.push(changedChar);
        } else if(changedNum > 25) {
            changedArr.push(overNum);
        } else if (changedNum === 25) {
        	changedArr.push('Z');
        } 
    }
	console.log(changedArr.join(''))
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
