i= int (input("请输入年份:")) if i%4==0 and i %100!=0 or i % 400 == 0: print("该年为闰年。") else: print("该年为平年。")