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