N = int(input()) print("NO" if N % 2 else "YES")