function main(arg) {
  var a = arg.split(/\r\n|\r|\n/)

  var n = parseInt(a[0])
  var result = ''
  for (var i = 0; i < a[1].length; i++) {
    var charCode = a[1][i].charCodeAt() + n
    if (charCode > 90) {
      charCode = charCode - 26
    }

    result += String.fromCharCode(charCode)
  }

  console.log(result)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
