# 輸入一年份,判斷該年份是否是閏年並輸出結果。
# 注: 凡符合下面兩個條件之一的年份是閏年。
# 1. 能被4整除但不能被100整除。
# 2. 能被400整除。
year = int(input("please enter the year: "))
if year % 4 == 0 and year % 100 > 0:
print("The %s is leap year" % year)
elif year % 400 == 0:
print("The %s is leap year" % year)
else:
print("The %s is NOT leap year" % year)