from collections import Counter



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

counter = Counter()

for i in range(M):

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

    counter[a] += 1

    counter[b] += 1



if all(x % 2 == 0 for x in list(counter.values())):

    print("YES")

else:

    print("NO")

n,m,*p=list(map(int,open(0).read().split()));c=[0]*n

for x in p:c[x-1]+=1

print(("YNEOS"[any(x%2for x in c)::2]))
from collections import Counter

N, M = list(map(int, input().split()))
counter = Counter()
for i in range(M):
    a, b = list(map(int, input().split()))
    counter[a] += 1
    counter[b] += 1
if all(x % 2 == 0 for x in list(counter.values())):
    print("YES")
else:
    print("NO")

n, m, *p = list(map(int, open(0).read().split()))
c = [0] * n
for x in p:
    c[x - 1] += 1
print(("YNEOS"[any(x % 2 for x in c) :: 2]))

-from collections import Counter - -N, M = list(map(int, input().split())) -counter = Counter() -for i in range(M): -    a, b = list(map(int, input().split())) -    counter[a] += 1 -    counter[b] += 1 -if all(x % 2 == 0 for x in list(counter.values())): -    print("YES") -else: -    print("NO") +n, m, *p = list(map(int, open(0).read().split())) +c = [0] * n +for x in p: +    c[x - 1] += 1 +print(("YNEOS"[any(x % 2 for x in c) :: 2]))