#K49842. Leap Year Checker

    ID: 28732 Type: Default 1000ms 256MiB

Leap Year Checker

Leap Year Checker

This problem requires you to determine if a given year is a leap year. Recall that a year is a leap year if it is divisible by 4 but not by 100, unless it is also divisible by 400. In mathematical terms, a year \(y\) is a leap year if:

\(\left( y \mod 4 = 0 \text{ and } y \mod 100 \neq 0 \right) \text{ or } y \mod 400 = 0\).

For example, the year 2000 is a leap year, while the year 1900 is not.

inputFormat

The input is read from stdin and contains a single integer representing the year to be checked.

Example input:

2000

outputFormat

The output should be written to stdout as a single string. Print leap if the year is a leap year, and common otherwise.

Example output:

leap
## sample
2000
leap