#include <iostream>

using namespace std;
int main()
{
    int n,c,a,b;
    string s;
    cin>>c;
    cin>>s;
    n = s.length();
    for(int i = 0;i<n;i++){
       if(s[i]>64 && s[i] <91){
          b = (int)s[i] + c;
          if(b>90){
              cout<<(char)((b-90)+64);
          }
          else{
              cout<<(char)b;
          }
       
       }
    }
    return 0;
}