function Main(input) {
    var eigo = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]        

    input = input.split("\n")
    var a = parseInt(input[0])
    var b = input[1]    
    var text =""

    for (var i=0;i<b.length;i++){
        var e=b[i]                
        var index = eigo.findIndex(f=>f==e)        
        var c = (index+a)%26
        text +=eigo[c]        
    }


    console.log(text);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8")); 