fun main(args:Array<String>){
    val charset = Charsets.UTF_8
    val n = readLine()!!.toInt()
    var s = readLine()
    var ba = s?.toByteArray()!!
    var a = Array<Int>(10*10*10*10) {0}
    var b = Array<Char>(10*10*10*10) {'0'}

    for(i in ba.indices){
        var temp = ba[i].toInt() - 65
        temp = (temp + n) % 26
        a[i] = temp + 65
        b[i] =a[i].toChar()
        print(b[i])
    }
}