All problems

Leap Year Check

easyPythonMathConditionals

A heritage railway's booking system has to know whether a given year has a 29th of February, because the timetable for that date only exists in some years. The calendar rule is not simply "every four years": a year is a leap year when it divides by 4, except that a year ending a century — one that divides by 100 — is not, unless it also divides by 400.

Task: Read a year and report whether it is a leap year.

Input

A single line holding one integer year, with 1 ≤ year ≤ 9999.

Output

One line holding exactly Leap or exactly Not Leap — capital L, capital N, one space inside Not Leap, no quotes.

Example:

Input:
2000

Output:
Leap

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…