import numpy as np

import sys

input = sys.stdin.readline

n, m = list(map(int, input().split()))

a = np.zeros(n + 1, dtype=int)

for _ in range(m):

    x, y = list(map(int, input().split()))

    a[x] = (a[x] + 1) & 1

    a[y] = (a[y] + 1) & 1

print(("YES" if np.sum(a) == 0 else "NO"))

import sys

input = sys.stdin.readline

n, m = list(map(int, input().split()))

a = [0] * (n + 1)

for _ in range(m):

    x, y = list(map(int, input().split()))

    a[x] = (a[x] + 1) & 1

    a[y] = (a[y] + 1) & 1

print(("YES" if sum(a) == 0 else "NO"))

import numpy as np
import sys

input = sys.stdin.readline
n, m = list(map(int, input().split()))
a = np.zeros(n + 1, dtype=int)
for _ in range(m):
    x, y = list(map(int, input().split()))
    a[x] = (a[x] + 1) & 1
    a[y] = (a[y] + 1) & 1
print(("YES" if np.sum(a) == 0 else "NO"))

import sys

input = sys.stdin.readline
n, m = list(map(int, input().split()))
a = [0] * (n + 1)
for _ in range(m):
    x, y = list(map(int, input().split()))
    a[x] = (a[x] + 1) & 1
    a[y] = (a[y] + 1) & 1
print(("YES" if sum(a) == 0 else "NO"))

-import numpy as np -a = np.zeros(n + 1, dtype=int) +a = [0] * (n + 1) -print(("YES" if np.sum(a) == 0 else "NO")) +print(("YES" if sum(a) == 0 else "NO"))