P10575 [Lanqiao Cup 2024 National A] Next Time They Meet
Description
June 1, 2024 is a particularly special day, because the joyful Children's Day happens to fall on a Saturday. This surely brings children even more happiness, allowing them to fully enjoy this pleasant weekend and the strong holiday atmosphere.
This naturally leads to a question: in which year will the next June 1 Children's Day coincide with a Saturday again? Please give the answer as a four-digit integer.
Input Format
This is an output-only fill-in-the-blank problem. You only need to compute the result and submit it. The result of this problem is an integer. When submitting, fill in only this integer; any extra content will not be scored.
Output Format
This is an output-only fill-in-the-blank problem. You only need to compute the result and submit it. The result of this problem is an integer. When submitting, fill in only this integer; any extra content will not be scored.
Explanation/Hint
Translated by ChatGPT 5