fun main(args : Array<String>) {
    var N = readInt()
    var S = readString()
    var chars = S.toCharArray()

    for(c in chars){
        var convertChar:Char
        if( c + N > 'Z' ){
            convertChar = c + N - 26
        }else{
            convertChar = c + N
        }
        print(convertChar)
    }
}

fun readString() = readLine()!!
fun readInt() = readLine()!!.toInt()