N,M=map(int,input().split()) E=[0]*N for _ in range(M): a,b=map(int,input().split()) E[a]+=1 E[b]+=1 count=0 for x in E: count+=x%2 print("YES" if count<=2 else "NO")