Leap year
Problem
Willy's most successful years are leap years. Willie wants to write a program that would determine whether he is a leap year or not.
(Recall that a year is a leap year if its number is a multiple of 4 but not a multiple of 100, and also if it is a multiple of 400.)
Write a program that displays the word YES if the entered year is a leap year and NO - otherwise
Input
A single number is entered - the year number (integer, positive, does not exceed 30,000).
Output
It is required to print the word YES if the year is a leap year and NO otherwise.
Examples
№ |
Input |
Output |
1 |
2007 |
NO |
2 |
2000 |
YES |