import sys

input = sys.stdin.readline



N,M = list(map(int,input().split()))



AB = [[int(x) for x in input().split()] for _ in range(M)]



# (x,y)をすることは、(1,x),(1,y)とすることと同じ



counter = [0] * (N+1)

for x,y in AB:

    counter[x] += 1

    counter[y] += 1



answer = 'NO' if any(x&1 for x in counter) else 'YES'

print(answer)
import sys

import numpy as np



read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines



nums = np.array(read().split(), np.int32)[2:]



cond = np.all(np.bincount(nums) % 2 == 0)

print(('YES' if cond else 'NO'))
import sys

input = sys.stdin.readline
N, M = list(map(int, input().split()))
AB = [[int(x) for x in input().split()] for _ in range(M)]
# (x,y)をすることは、(1,x),(1,y)とすることと同じ
counter = [0] * (N + 1)
for x, y in AB:
    counter[x] += 1
    counter[y] += 1
answer = "NO" if any(x & 1 for x in counter) else "YES"
print(answer)

import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
nums = np.array(read().split(), np.int32)[2:]
cond = np.all(np.bincount(nums) % 2 == 0)
print(("YES" if cond else "NO"))

+import numpy as np -input = sys.stdin.readline -N, M = list(map(int, input().split())) -AB = [[int(x) for x in input().split()] for _ in range(M)] -# (x,y)をすることは、(1,x),(1,y)とすることと同じ -counter = [0] * (N + 1) -for x, y in AB: -    counter[x] += 1 -    counter[y] += 1 -answer = "NO" if any(x & 1 for x in counter) else "YES" -print(answer) +read = sys.stdin.buffer.read +readline = sys.stdin.buffer.readline +readlines = sys.stdin.buffer.readlines +nums = np.array(read().split(), np.int32)[2:] +cond = np.all(np.bincount(nums) % 2 == 0) +print(("YES" if cond else "NO"))