for leap in range(2021,2051):
if leap%4 == 0:
if leap%100 == 0:
if leap%400 == 0:
print(leap)
else:
print(leap)