l=[0]*2**17

for i in open(0).read().split()[2:]:l[int(i)]+=1

print(('YNEOS'[any(i%2for i in l)::2]))
from collections import*;print(('YNEOS'[any(i%2for i in list(Counter(open(0).read().split()[2:]).values()))::2]))
l = [0] * 2**17
for i in open(0).read().split()[2:]:
    l[int(i)] += 1
print(("YNEOS"[any(i % 2 for i in l) :: 2]))

from collections import *

print(
    (
        "YNEOS"[
            any(i % 2 for i in list(Counter(open(0).read().split()[2:]).values())) :: 2
        ]
    )
)

-l = [0] * 2**17 -for i in open(0).read().split()[2:]: -    l[int(i)] += 1 -print(("YNEOS"[any(i % 2 for i in l) :: 2])) +from collections import * + +print( +    ( +        "YNEOS"[ +            any(i % 2 for i in list(Counter(open(0).read().split()[2:]).values())) :: 2 +        ] +    ) +)