#include <iostream>
#include <string>
#include<cstdio>
using std::cin;
using std::string;
using std::cout;
using std::endl;

int main()
{
    int k,n;
    string text;
    cin>>n;
    cin>>text;
    cin>>k;
    k=k%26; //taking MOD 26 because it is the size of English alphabet.
    char ans;
	int extra,letter;
    for (int i = 0; i <n; i++)
    { //cout<<text[i]<<" : ";
       // if(text[i] != '\0') //check if the character is null
        {
            if(isalpha(text[i])) //check if the character is alphabet
            {
                int d=(int)text[i] ; //obtain the ascii value
                
                int t=d+k;           //obtain the encrypted value
                //if(t>122)            
                {	//cout<<t<<","<<d<<" ... ";
                	if(d>96)        //if the encrypted value of character is greater than 'a', small caps
                    {	
                    	if(t>122) { //if value is greater than 'z' ASCII is 122
                    	 extra=t-122;
                    	 letter=97 +(extra-1); //97 is ASCII of 'a'
                    	 
                    }//string ans= string()+char(letter);
                    else 
                    	letter=char(t);
                    }
                    else // Upper caps
                    {	if(t>90) {	//90 is ASCII of 'Z'
                    	 extra=t-90;
                    	 letter=65 +(extra-1); //65 is ASCII of 'A'
                     }
                     else
                     	letter=char(t);
                    }
                    ans=letter;
                    //cout<<char(letter);//cout<<ans;
                }
				//else
                //string ans= string()+char(t); //print the encrypted character
               cout<<char(ans); //cout<<ans;
             }
             else              //if the character is not string, then print it just like that
            {
                 cout<<text[i];
             } //cout<<endl;
        }
    }
}