题目描述
Problem Description
Today is day $X$ of the week, and Xiao Yang has $N$ days left until his exam. Can you calculate what day of the week Xiao Yang's exam will be on? (In this problem, $7$ represents Sunday.)
Input Format
The input consists of 2 lines. The first line contains an integer $X$ ($1 \le X \le 7$). The second line contains an integer $N$ ($1 \le N \le 364$).
Output Format
Output a single integer representing the day of the week on which Xiao Yang's exam will be.
Sample Input and Output
Sample Input #1
1
6
Sample Output #1
7
Sample Input #2
5
3
Sample Output #2
1
Notes
Sample Explanation 1
Today is Monday (day 1), so 6 days later is Sunday, which is represented by $7$ in this problem.
Sample Explanation 2
Today is Friday (day 5), so 3 days later is Monday (day 1).
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
1
6
样例输出
7