SaveText.Ru

Без имени
  1. year = int(input())
  2. if year <= 1918:
  3.     if year % 4 ==0:
  4.         print('YES')
  5.     else:
  6.         print('NO')
  7. elif year % 100 ==0 and year %400 != 0:
  8.     print('NO')
  9. else:
  10.     if year % 4 ==0:
  11.         print('YES')
  12.     else:
  13.         print('NO')

Share with your friends:

Print