#include { {
int main()
{
char ab, cd[105];
int i=0,p=0,n;
while((ab=getchar())!='\n')
{
cd[i]=ab;
i++;
}
p=i;
scanf("%d",&n);
for(i=0;i
ab=cd[i];
if(ab>='a'&&ab<='z')
{
ab=(ab-'a'+n)%26+'a';
cd[i]=ab;
}
else if(ab>='A'&&ab<='Z')
{
ab=(ab-'A'+n)%26+'A';
cd[i]=ab;
}
}
for(i=0;i
putchar(cd[i]);
}
printf("\n");
return 0;
}