YearNumber = int(input()) if YearNumber % 4 == 0: if YearNumber % 100 == 0: if YearNumber % 400 == 0: print("Yes") else: print("No") else: print("Yes") else: print("No")