← Problem book: Python Lesson 21 of 96 · 10 XP

Leap year

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given a year y. 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 — or if it is divisible by 400.

Example

Input:

2024

Output:

YES

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.