Magi_karp @ 2017-03-01 23:06:50
#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int main()
{
int n;
char a;
cin>>n;
n%=26;
cin.get();
while (cin.get(a)&&a!='\n')
{
if ((a+n<=122&&a+n>=97)||(a+n<=90&&a+n>=65))
cout<<char(a+n);
else cout<<char(a+n-26);
}
cout<<endl;
return 0;
}