import calendar num = int(input()) if calendar.isleap(num): print("Yes") else: print("No")