Problem E
Hlaupafmæli
Languages
en
is
Little Gunna was born the 29th of February 2020. This day, 29th of February, is a bit special. The reason is that the month of February usually only has 28 days. Only on special years, leap years, February has 29 days. This is a bit odd for Gunna since she can only celebrate her birthday on leap years.
A year is a leap year if it is divisible by $4$. The only exception to this are years divisible by $100$, those are not leap years unless they are divisible by $400$. For example the years $2020, 2024$ and $2400$ are leap years but the years $2022, 2023$ and $2100$ aren’t.
Given a year, can you help Gunna figure out what birthday she is celebrating that year?
Input
The input contains a single integer $Y$ ($2\, 021 \leq Y \leq 10^{18}$), the year Gunna is asking about.
Output
Print a single line with the number of the birthday Gunna is celebrating that year or ‘Neibb’ if she’s not celebrating a birthday that year.
Scoring
Group |
Points |
Constraints |
1 |
25 |
$Y \leq 2\, 400$ |
2 |
35 |
$Y \leq 10^6$ |
3 |
40 |
No further constraints |
Sample Input 1 | Sample Output 1 |
---|---|
2028 |
2 |
Sample Input 2 | Sample Output 2 |
---|---|
2200 |
Neibb |
Sample Input 3 | Sample Output 3 |
---|---|
2400 |
92 |
Sample Input 4 | Sample Output 4 |
---|---|
2020202020202020 |
489898989898500 |