fun main(args: Array<String>) {
    val n = readLine()!!.split(" ").map { it.toInt() }[0]
    val s = readLine()!!.split(" ")[0]
    val nagasa = s.length
    val ans = Array(nagasa){ 0 }
    for (i in 0..nagasa-1){
        val divideS = s.get(i)
        var a = divideS.toInt() + n
        if (a <= 90){
            ans[i] = a
            val answer = ans.map { it.toChar() }
            print(answer[i])
        } else {
            ans[i] = a - 26
            val answer = ans.map { it.toChar() }
            print(answer[i])
        }
    }
}


