#P10575. Next Saturday Children's Day

    ID: 12596 Type: Default 1000ms 256MiB

Next Saturday Children's Day

Next Saturday Children's Day

The year 2024 has a special meaning: June 1, 2024, which is Children's Day, happens to fall on a Saturday. This delightful coincidence fills the hearts of children with extra joy during a weekend filled with celebration. However, one might wonder: when will the next June 1, i.e. Children's Day, fall on a Saturday? Your task is to determine and output the next year (in four-digit format) after 2024 in which June 1 is a Saturday.

Note: The answer should be output as a four-digit integer.

inputFormat

This problem does not require any input. The program should compute the answer based on the fixed starting point (2024) provided in the description.

outputFormat

Output a four-digit integer representing the next year after 2024 when June 1 falls on a Saturday.

sample

N/A
2029