object Main extends App {
  import scala.io.StdIn._
  val n = readInt()
  val s = readLine()
  val a = ('A' to 'Z').toList
  val res = s.toList.map(x => a((a.indexOf(x) + n) % 26)).mkString("")
  println(res)
}