for i in range(1900,2000): if i %4 ==0 and i%100 != 0: print(i) elif i %400 ==0: print(i)