fun main(args: Array<String>) {
    val N = nextInt()
    val S = next()
    val ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    var ans = ""
    for (c in S) {
        val ch = c - 'A'
        ans += ALPHABET[(ch + N) % 26]
    }
    println("${ans}")
}
fun next() = readLine()!!
fun nextInt(delta: Int = 0) = Integer.parseInt(next()) + delta