var readline = require('readline');

var rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
});

var mapping = {
  
}
var count = 0;
rl.on( "line", function(line) {
  count++;
  var shifts = 0;
  if (count === 1) {
    shifts = parseInt(line, 10);
  }
  else if (count === 2) {
    if (shifts === 0) {
      console.log(line);
      return;
    }
    var toBeReturned = '';
    for (var i = 0; i < line.length; i++) {
      var code = line.charCodeAt(i) + shifts;
      toBeReturned += String.fromCharCode(code);
    }
    console.log(toBeReturned);
  }
});

