N=int(input())
if N<=4:
  print('No')
  exit()
x=(N+1)//2
y=N//2
b=y*(y+1)//2
if x%2==0 and b%2==0:
  print('Yes')
else:
  print('No')