Leap Year

Lab Python Beginner 10 points

Read a year and print leap if it is a leap year, otherwise common. A leap year is divisible by 4, except century years, which must be divisible by 400.

Input

One integer year.

Output

leap or common

Example

Input

2024

Output

leap
Sample input available Sample output available
Editor
Python

Hints

Combine conditions with and / or.

1900 is not a leap year, 2000 is.

Solution explanation

and binds tighter than or, but parentheses make the intent clear.

Show solution
y = int(input())
if (y % 4 == 0 and y % 100 != 0) or y % 400 == 0:
    print("leap")
else:
    print("common")
Output
Answer
HOME LEARN COMMUNITY DASHBOARD