#!/usr/bin/env python3 # -*- coding: utf-8 -*- def main(): N = int(input()) if N % 400 == 0: leap = True elif N % 100 == 0: leap = False elif N % 4 == 0: leap = True else: leap = False print("Yes" if leap else "No") if __name__ == "__main__": main()