object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N = sc.nextInt()
  val S = sc.next()
  val aToZ = ('A' to 'Z') ++ ('A' to 'Z')
  println(S.map(s => aToZ(aToZ.indexWhere(_ == s) + N)))
}
