from collections import deque N,M = map(int,input().split()) G = {i:set() for i in range(1,N+1)} for _ in range(M): a,b = map(int,input().split()) G[a].add(b) G[b].add(a) que = deque([]) for i in range(1,N+1): if len(G[i])==1: que.append(i) ans = 0 while que: x = que.popleft() for y in G[x]: G[y].remove(x) ans += 1 if len(G[y])==1: que.append(y) if ans%2==1: print("Yes") else: print("No")