from collections import deque N,M=map(int,input().split()) E=[[] for _ in range(N+1)] D=[0]*(N+1) for _ in range(M): a,b=map(int,input().split()) E[a].append(b) E[b].append(a) D[a]+=1; D[b]+=1 X=[0]*(N+1) Q=deque([x for x in range(N+1) if D[x]==1]) while Q: x=Q.popleft() if X[x]==1 or D[x]!=1: continue X[x]=1 for y in E[x]: D[x]=0 D[y]-=1 if D[y]==1 and X[y]==0: Q.append(y) print("Yes" if sum(X)%2==1 else "No")