num=int(input()) if num%400==0: print('Yes') elif num%100==0: print('No') elif num%4==0: print('Yes') else: print('No')