N, M = list(map(int, input().split()))  # N頂点, M個のクエリ



counter = {}

for i in range(1, N+1):

    counter.setdefault(i, 0)



for i in range(M):

    a, b = list(map(int, input().split()))

    counter[a] += 1

    counter[b] += 1



for num in list(counter.values()):

    if num % 2 == 1:

        print('NO')

        exit()



print('YES')

from collections import defaultdict

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

c = defaultdict(int)

for _ in range(M):

    a, b = list(map(int, input().split()))

    c[a] += 1

    c[b] += 1



flag = True

for k, v in list(c.items()):

    if v % 2 != 0:

        flag = False

if flag:

    print("YES")

else:

    print("NO")

N, M = list(map(int, input().split()))  # N頂点, M個のクエリ
counter = {}
for i in range(1, N + 1):
    counter.setdefault(i, 0)
for i in range(M):
    a, b = list(map(int, input().split()))
    counter[a] += 1
    counter[b] += 1
for num in list(counter.values()):
    if num % 2 == 1:
        print("NO")
        exit()
print("YES")

from collections import defaultdict

N, M = list(map(int, input().split()))
c = defaultdict(int)
for _ in range(M):
    a, b = list(map(int, input().split()))
    c[a] += 1
    c[b] += 1
flag = True
for k, v in list(c.items()):
    if v % 2 != 0:
        flag = False
if flag:
    print("YES")
else:
    print("NO")

-N, M = list(map(int, input().split()))  # N頂点, M個のクエリ -counter = {} -for i in range(1, N + 1): -    counter.setdefault(i, 0) -for i in range(M): +from collections import defaultdict + +N, M = list(map(int, input().split())) +c = defaultdict(int) +for _ in range(M): -    counter[a] += 1 -    counter[b] += 1 -for num in list(counter.values()): -    if num % 2 == 1: -        print("NO") -        exit() -print("YES") +    c[a] += 1 +    c[b] += 1 +flag = True +for k, v in list(c.items()): +    if v % 2 != 0: +        flag = False +if flag: +    print("YES") +else: +    print("NO")