This problem is supposed to be the second easiest one in KUPC2025. It was removed when the contest was ported to Universal Cup.
Consider a calendar that starts on Sunday and ends on Saturday. In this problem, the definition of the calendar follows the Gregorian calendar.
More precisely, the calendar for month $$$M$$$ of year $$$Y$$$ is drawn in the following way.
The figure shows the calendar for March 2026. The weekday labels have been added only for convenience.
For the calendar of month $$$M$$$ in year $$$Y$$$, we call the following structure a calendar square.
For example,
For the calendar squares contained in month $$$M$$$ of year $$$Y$$$, find the size of the largest one.
The first line contains integers $$$Y,M$$$ in this order. ($$$1900 \le Y \le 2999, 1 \le M \le 12$$$)
Print the answer.
2026 3
4
| Name |
|---|


