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