102620: [AtCoder]ABC262 A - World Cup

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

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

Constraints

  • $2000 \leq Y \leq 3000$
  • $Y$ is an integer.

Input

Input is given from Standard Input in the following format:

$Y$

Output

Print the answer.


Sample Input 1

2022

Sample Output 1

2022

The remainder when $2022$ is divided by $4$ is $2$, so if it is now January of $2022$, 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

Input

题意翻译

世界杯在除以 $4$ 余 $2$ 的年份的 $6$ 月举办,现在是 $Y$ 年 $1$ 月,求下一次世界杯在哪一年举办。 输入一个整数 $Y(2000\le Y\le 3000)$,输出下一次世界杯在哪一年举办。

Output

分数:100分

问题描述

每年六月都会举行一项运动赛事,该年份除以4的余数为2。
假设现在是一年的1月,这项运动赛事下次将在哪一年举行?

限制条件

  • $2000 \leq Y \leq 3000$
  • $Y$ 是一个整数。

输入

从标准输入以以下格式获取输入:

$Y$

输出

打印答案。


样例输入1

2022

样例输出1

2022

2022年除以4的余数为2,因此如果现在是一年的1月,那么该运动赛事将在同年的6月举行。


样例输入2

2023

样例输出2

2026

样例输入3

3000

样例输出3

3002

加入题单

算法标签: