fun main(args : Array<String>) {
    val n = readLine()!!.toInt()
    val s = readLine()!!

    var ans = ""

    s.forEach {
        var next = it.toInt() + n
        if (next > 90) next -= 26
        ans += next.toChar()
    }

    println(ans)
}
