for i in filter(lambda x:x%100 if x%400!=0 else x,range(2000,int(input())+1,4)):print(i)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page