All tasks
Easymathconditions

Leap Year

Time limit 2 s · Memory 64 MB

Statement

You are given a year. Print YES if it is a leap year, otherwise NO. A year is a leap year if it is divisible by 4 but not by 100, except that years divisible by 400 are leap years.

Constraints

1 ≤ year ≤ 10^9

Examples

Input 1
2000
Output 1
YES
Input 2
1900
Output 2
NO
Solve this task to unlock the editorial.

AI tutor

Stuck? Get a nudge — the tutor explains the idea, it never hands you the solution.