
fun main(arr:Array<String>) {
    val num = readLine()!!.toInt()
    val str = readLine()!!
    val ans = str.map { if(it + num > 'Z') 'A' + (it + num - 'Z' - 1) else it + num }.joinToString("")
    println(ans)
}

