import scala.io.StdIn._

object Main extends App {


  val n = readInt()
  val s = readLine()

  def solve() = {
    s.map { c =>
      (((c - 'A') + n) % 26 + 'A').toChar
    }.mkString("")
  }

  println(solve())

}

