100 atcoder#ABC146B. [ABC146B] ROT N
[ABC146B] ROT N
Score : points
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.
2
ABCXYZ
CDEZAB
Note that A
follows Z
.
0
ABCXYZ
ABCXYZ
13
ABCDEFGHIJKLMNOPQRSTUVWXYZ
NOPQRSTUVWXYZABCDEFGHIJKLM