# week=int(input("请输入今天是一周的哪一天的数字(星期天是0,星期一是1,以此类推):"))
# if week==0:
# print("星期天")
# else:
# if week==1:
# print("星期一")
# elif week==2:
# print("星期二")
# elif week==3:
# print("星期三")
# elif week==4:
# print("星期四")
# elif week==5:
# print("星期五")
# elif week==6:
# print("星期六")
# b=int(input("请输入今天之后未来某天的天数:"))
# if b<7:
# c=week-(7-b)
# if c==0:
# print("未来{0}天后为星期天".format(b))
# elif c==1:
# print("未来{0}天后为星期一".format(b))
# elif c==2:
# print("未来{0}天后为星期二".format(b))
# elif c==3:
# print("未来{0}天后为星期三".format(b))
# elif c==4:
# print("未来{0}天后为星期四".format(b))
# elif c==5:
# print("未来{0}后为星期五".format(b))
# elif c==6:
# print("未来{0}后为星期六".format(b))
# else:
# d=b%7
# if week+d<7:
# c=week+d
# if c==0:
# print("未来{0}天后为星期天".format(b))
# elif c==1:
# print("未来{0}天后为星期一".format(b))
# elif c==2:
# print("未来{0}天后为星期二".format(b))
# elif c==3:
# print("未来{0}天后为星期三".format(b))
# elif c==4:
# print("未来{0}天后为星期四".format(b))
# elif c==5:
# print("未来{0}后为星期五".format(b))
# elif c==6:
# print("未来{0}后为星期六".format(b))
# else:
# c=week-(7-d)
# if c==0:
# print("未来{0}天后为星期天".format(b))
# elif c==1:
# print("未来{0}天后为星期一".format(b))
# elif c==2:
# print("未来{0}天后为星期二".format(b))
# elif c==3:
# print("未来{0}天后为星期三".format(b))
# elif c==4:
# print("未来{0}天后为星期四".format(b))
# elif c==5:
# print("未来{0}天后为星期五".format(b))
# elif c==6:
# print("未来{0}天后为星期六".format(b))
# a=int(input("请输入一个整数:"))
# if a%5==0 and a%6==0:
# print("False")
# elif a%5==0 or a%6==0 and a%5!=0 or a%6==0 and a%5==0 or a%6!=0:
# print("True")
#43(1) for a in range(1,7):
# for i in range(1,a+1):
# print(i,end=" ")
# a+=1
# print()
# 43(2)for i in range(6,0,-1):
# for j in range(1,i+1):
# print(j,end=" ")
# i+=1
# print()
# 43(3)for i in range(1,7):
# for j in range(1,7-i):
# print(" ",end=" ")
# for j in range(i,0,-1):
# print(j,end=" ")
# i+=1
# print()
# for i in range(1,7):
# for j in range(1,i+1):
# print(" ",end=" ")
# for j in range(1,8-i):
# print(j,end=" ")
# i+=1
# print()
# import random
# a=0
# p=0
# while a<2 and p<2:
# p_choice=int(input("剪刀=0、石头=1、布=2,请选择剪刀、石头或者布:"))
# a_choice=random.randint(0,2)
# print(f"你出的是{p_choice}")
# if a_choice==p_choice:
# print("平局")
# print("电脑出的是",a_choice)
# elif a_choice==0 and p_choice==1 or a_choice==1 and p_choice==2 or a_choice==2 and p_choice==0:
# print("你赢了")
# print("电脑出的是",a_choice)
# p+=1
# else:
# print("你输了")
# print("电脑出的是",a_choice)
# a+=1
for i in range(2001,2101):
if (i%4==0 and i%100!=0) or i%400==0:
print(" ",end=" ")
for j in range(1):
if i+1==10:
print("\n")
if (i%4==0 and i%100!=0)or i%400==0:
print(i,end=" ")