Problem list
Log in
#r03321 · Online Judge > GoldOJ

Leap Year

Bronze V 1.0 s 256 MB

Given a year $y$, print leap if it is a leap year (divisible by $400$, or divisible by $4$ but not by $100$), otherwise common.

Input

One integer $y$ ($1 \le y \le 9999$).

Output

Print leap or common.

Example 1

Input
2024
Output
leap
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code