#B2150. Determining Leap Year

    ID: 11232 Type: Default 1000ms 256MiB

Determining Leap Year

Determining Leap Year

Given a year \(a\), determine whether it is a leap year. A year is defined as a leap year if it satisfies the condition:
\(a \mod 400 = 0\) or (
\(a \mod 4 = 0\) and \(a \mod 100 \neq 0\)
).
Output Y if \(a\) is a leap year, otherwise output N.

inputFormat

The input consists of a single integer \(a\) representing a year in the Gregorian calendar.

outputFormat

Output a single character: Y if \(a\) is a leap year; otherwise, output N.

sample

2000
Y