fork(1) download
  1. A = input()
  2. year = int(A)
  3. if ((year % 100 != 0) and (year % 4 == 0)) or (year % 400 == 0) :
  4. print(1)
  5. else:
  6. print(0)
  7.  
Success #stdin #stdout 0.11s 14048KB
stdin
2012
stdout
1