#abc262a. A - World Cup

A - World Cup

Score : 100100 points

问题陈述

每年六月会举行一场体育赛事,当该年份除以4时余数为2。 假设现在是年份Y的一月份,这场体育赛事下一次将在哪一年举行?

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

A sport event is held in June of every year whose remainder when divided by 44 is 22.
Suppose that it is now January of the year YY. In what year will this sport event be held next time?

Constraints

  • 2000Y30002000 \leq Y \leq 3000
  • YY is an integer.

Input

Input is given from Standard Input in the following format:

YY

Output

Print the answer.

Sample Input 1

2022

Sample Output 1

2022

The remainder when 20222022 is divided by 44 is 22, so if it is now January of 20222022, the next games will be held in June of the same year.

Sample Input 2

2023

Sample Output 2

2026

Sample Input 3

3000

Sample Output 3

3002

update @ 2024/3/10 11:05:34