#t237. 判断闰年

判断闰年

Leap Year

Problem Description

Determine whether a given year is a leap year.

Input Format

A single line containing an integer aa (0<a<30000 \lt a \lt 3000).

Output Format

A single line: if year aa (CE) is a leap year, output Y; otherwise output N.

Sample Input

2006

Sample Output

N

Hint

  • The leap-year rule is given below — note the extra 3200 clause in this problem.
  • The output is the letter Y / N, not 0 and 1.
  • Check against the sample: 2006 → N.

In the Gregorian calendar, most years divisible by 44 are leap years, but years divisible by 100100 yet not by 400400 are not leap years, and years divisible by 32003200 are also not leap years — e.g. 19001900 is a common year, 20002000 is a leap year, and 32003200 is not a leap year.