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