Problem:
Score : 200 points

Problem Statement

We have a string S consisting of uppercase English letters. Additionally, an integer N will be given.

Shift each character of S by N in alphabetical order (see below), and print the resulting string.

We assume that A follows Z. For example, shifting A by 2 results in C (A \to B \to C), and shifting Y by 3 results in B (Y \to Z \to A \to B).

Constraints

0 \leq N \leq 26

1 \leq |S| \leq 10^4

S consists of uppercase English letters.

Input

Input is given from Standard Input in the following format:

N
S

Output

Print the string resulting from shifting each character of S by N in alphabetical order.

Sample Input 1

2
ABCXYZ

Sample Output 1

CDEZAB

Note that A follows Z.

Sample Input 2

0
ABCXYZ

Sample Output 2

ABCXYZ

Sample Input 3

13
ABCDEFGHIJKLMNOPQRSTUVWXYZ

Sample Output 3

NOPQRSTUVWXYZABCDEFGHIJKLM

Solution in C (GCC 5.4.1) (judge verdict: Runtime Error)

#include<stdio.h>
int main()
{
    char a[27],s[50];
   char ch =  'A';
   int l,i,n,x;
   a[0]='z';
    for(i=1;i<27;i++)
    {
        a[i]=ch;
        ch++;
    }

    scanf("%d %s",&n, &s);
    l=strlen(s);

     for(i=0;i<l;i++)
     {
         x=0;
         if(s[i]== 'A')
         {
            x=1+n;
            x=x%26;
            printf("%c",a[x]);

         }
        else if(s[i]== 'B')
         {
            x=2+n;
            x=x%26;
            printf("%c",a[x]);
         }
        else if(s[i]== 'C')
         {
            x=3+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'D')
         {
            x=4+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'E')
         {
            x=5+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'F')
         {
            x=6+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'G')
         {
            x=7+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'H')
         {
            x=8+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'I')
         {
            x=9+n;
            x=x%26;
            printf("%c",a[x]);
         }


else if(s[i]== 'J')
         {
            x=10+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'K')
         {
            x=11+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'L')
         {
            x=12+n;
            x=x%26;
            printf("%c",a[x]);
         }


else if(s[i]== 'M')
         {
            x=13+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'N')
         {
            x=14+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'O')
         {
            x=15+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'P')
         {
            x=16+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'Q')
         {
            x=17+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'R')
         {
            x=18+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'S')
         {
            x=19+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'T')
         {
            x=20+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'U')
         {
            x=21+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'V')
         {
            x=22+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'W')
         {
            x=23+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'X')
         {
            x=24+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'Y')
         {
            x=25+n;
            x=x%26;
            printf("%c",a[x]);
         }
else if(s[i]== 'Z')
         {
            x=26+n;
            x=x%26;
            printf("%c",a[x]);
         }


     }


}