n = int(input()) if n % 4 == 1 and n > 1: print("No") else: print("Yes")