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

    var result = ""
    for (i in 0 until s.size) {
        var a = (((s[i].toInt() - 65 + n) % 26) + 65).toChar()
        result += a.toString()
    }
    println(result)
}