#include <iostream>
using namespace std;

void f(char c, int n) {
    string zm = "abcdefghijklmnopqrstuvwxyz";
    for (int i = 0; i < 26; i++) {
        if (zm[i] == c) {
            //cout<< c <<" "<<zm[(i + n) % 26]<<endl;
            cout << zm[(i + n) % 26];
        }
    }
}

int main() {
    int n;
    string s;
    cin >> n >> s;
    for (char v:s) {
        f(v,n);
    }
}
// 64 位输出请用 printf("%lld")