#PCBTAM0000010. Dịch mã ký tự (Shift a Character Code)
Dịch mã ký tự (Shift a Character Code)
Shift a Character Code
Version: Phuoc Hung OJ Extended
Problem Statement
Given a character and a signed integer , let be the Unicode code point of . Find the character whose code point is .
This shifts the numeric code point; it does not wrap around the alphabet. For example, A has code point , so a shift of produces B.
Input
The first line contains exactly one Unicode character . The second contains integer , which may be negative, zero, or positive.
Output
Print the character with code point equal to the code point of plus .
Subtasks
- Subtask 1 (100 points): ; .
Examples
Example 1
Input
A
1
Output
B
Explanation. A is ; adding gives , the code point of B.
Example 2
Input
c
-2
Output
a
Explanation. c is ; adding gives , the code point of a.
Example 3
Input
Z
0
Output
Z
Explanation. A zero shift keeps Z unchanged.