Start 2023-08-30 13:00:00

NO.17 函数

End 2024-08-30 16:00:00
Contest is over.
Now 2025-08-20 20:54:24

B. 展示闰年

Description

输入 x,y (1582≤x<y≤3000),输出 [x,y] 区间中闰年个数,并在下一行输出所有闰年年份数字,使用空格隔开。

Input

1989 2001

Output

3 1992 1996 2000

Examples

Input

1989  2001

Output

3
1992 1996 2000

Submit

Login

Signup
Time Limit 1 second
Memory Limit 128 MB
Submit