"""
P5737 【深基7.例3】闰年展示(python3实现)
https://www.luogu.com.cn/problem/P5737
"""
ans=0
a,b=map(int,input().split() )
for i in range(a,b+1):
if i%400==0 or i%4==0 and i%100 !=0:
ans+=1
print(ans)
for i in range(a,b+1):
if i%400==0 or i%4==0 and i%100 !=0:
print(i,end=" ")
P1303 A*B Problem(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122710997
P1307 [NOIP2011 普及组] 数字反转(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122738816
P1319 压缩技术(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122807738
P1403 [AHOI2005]约数研究--100分(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122769915
P1414 又是毕业季II (80分 python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122774554
P1420 最长连号(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122765796