#K41827. Leap Year Checker
Leap Year Checker
Leap Year Checker
Given an integer representing a year, determine whether it is a leap year. A year is a leap year if it is divisible by 4 and not divisible by 100, or if it is divisible by 400. In mathematical terms, a year \(y\) is a leap year if:
\(\text{(}y\mod4=0 \text{ and } y\mod100\neq0\text{) or } y\mod400=0\)
Your task is to read the year from standard input and output the corresponding result as either Leap Year
or Not a Leap Year
.
inputFormat
The input consists of a single line containing one integer, which represents the year to be checked.
outputFormat
Output a single line: Leap Year
if the input year is a leap year, otherwise output Not a Leap Year
.
2000
Leap Year