def main(): year = int(input()) if (year % 100 == 0 and year % 400 != 0) or year % 4 != 0: print("No") else: print("Yes") if __name__ == '__main__': main()