#abc146b. [abc146_b]ROT N
[abc146_b]ROT N
Problem Statement
We have a string consisting of uppercase English letters. Additionally, an integer will be given.
Shift each character of by in alphabetical order (see below), and print the resulting string.
We assume that A
follows Z
. For example, shifting A
by results in C
(A
B
C
), and shifting Y
by results in B
(Y
Z
A
B
).
Constraints
- consists of uppercase English letters.
Input
Input is given from Standard Input in the following format:
Output
Print the string resulting from shifting each character of by 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