A - What month is it?
Editorial
/


Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
1 以上 12 以下の整数 X,Y が与えられます。
X 月の Y ヶ月後が何月か求めてください。
制約
- X,Y は 1 以上 12 以下の整数
入力
入力は以下の形式で標準入力から与えられる。
X Y
出力
答えを整数として出力せよ。
入力例 1
5 9
出力例 1
2
5 月の 9 ヶ月後は 2 月です。したがって、 2 を出力してください。
入力例 2
1 1
出力例 2
2
入力例 3
12 12
出力例 3
12
Score : 100 points
Problem Statement
You are given integers X and Y between 1 and 12, inclusive.
Find what month it will be Y months after month X (for example, month 1 is January).
Constraints
- X and Y are integers between 1 and 12, inclusive.
Input
The input is given from Standard Input in the following format:
X Y
Output
Output the answer as an integer.
Sample Input 1
5 9
Sample Output 1
2
Nine months after May is February. Therefore, output 2.
Sample Input 2
1 1
Sample Output 2
2
Sample Input 3
12 12
Sample Output 3
12