Next day

Next day. Given the month (an integer from 1 to 12) and the day in it (an integer from 1 to 31) in the year 2017 (or in any other common year), print the month and the day of the next day to it. The first test corresponds to March 30 and March 31. The second test corresponds to March 31 and April 1.

Input

Output

3
30

3
31

3
31

4
1

3
29

3
30

4
1

4
2

1
29

1
30

 

Leave a Reply

Your email address will not be published. Required fields are marked *