fun main (args:Array<String>){
    val num = readLine()!!.toInt()
    var strAlpha = readLine()!!
    val alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    for(i in 0..strAlpha.length-1){
        var strAlphaIndex = alpha.indexOf(strAlpha[i]) + num
        if(strAlphaIndex > 25){
            print(alpha[strAlphaIndex - 26])
            continue
        }
        print(alpha[strAlphaIndex])
    }
}