x = input() x = int(x) if (x%4==0 and x%100 !=0) or x%400 == 0: print('Yes') else: print('No')