https://www.luogu.org/problem/P1914
//也可以设置一个a-za-z的数组,for循环里面就不用判断是否>25了
#include <iostream>
#include <string>
using namespace std;
int main(void)
{
int n;
string str;
char strDst[51] = {0};
cin>>n>>str;
n%=26;
int len = str.length();
for(int i = 0; i < len; i++)
{
if(str[i]-'a'+n>25)
strDst[i] = str[i]+n-26;
else
strDst[i] = str[i]+n;
}
cout << strDst<<endl;
return 0;
}