World Cup

AtCoder
IDabc262_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
2022
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.
Input #2
2023
Output #2
2026
Input #3
3000
Output #3
3002
API Response (JSON)
{
  "problem": {
    "name": "World Cup",
    "description": {
      "content": "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?",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc262_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "A sport event is held in June of every year whose remainder when divided by $4$ is $2$.  \nSuppose that it is now January of the year $Y$. In what year will this sport event be held next time?\n\n## Cons...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments