import java.util.Scanner

object Main extends App{
  val sc = new Scanner(System.in)

  val n = sc.nextInt
  val s = sc.next

  val alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"

  def rotate(ch: Char, n: Int): Char = {
    alphabets.charAt(alphabets.indexOf(ch) + n)
  }

  val res = s.map(rotate(_,n))

  println(res)
}
