import sys readline=sys.stdin.readline write=sys.stdout.write N=int(readline()) if N%2: ans="NO" else: ans="YES" print(ans)