A year $Y$ is a leap year if $Y$ is a multiple of $4$. However, there is an exception: if $Y$ is a multiple of $100$ and not a multiple of $400$, it is not a leap year.
For example, 1900 is not a leap year, but 2000 is a leap year.
Given two integers $L$ and $R$, output the leap years between year $L$ and $R$ (inclusive) in ascending order.
Input
The only line of input contains two integers $L$ and $R$. $(1 \le L \le R \le 10000)$
Output
Output the leap years between years $L$ and $R$.
Sample Test Cases
Input | Output | |
---|---|---|
90 110 | 92 96 104 108 |
Scoring: Per Subtask
Authored by s16f22