import java.lang.Integer.min

fun main (args:Array<String>){
    val N = readLine()!!.toInt()
    var S = readLine()!!

    for (s in S) {
        var plusInt = N
        if (s.toInt() + N > 'Z'.toInt()) {
            plusInt = ((s.toInt() + N) - 'Z'.toInt() - (s.toInt() - 'A'.toInt() + 1))
        }
        print((s.toInt() + plusInt).toChar())
    }
}
