N,M = map(int,input().split()) G = [[] for _ in range(N+1)] gnum = [0] * (N+1) for _ in range(M): a,b = map(int,input().split()) G[a].append(b) G[b].append(a) gnum[a] += 1 gnum[b] += 1 memo = [0] * (N + 1) from collections import deque q = deque() for i in range(1,N+1): if gnum[i] == 1: q.append(i) memo[i] = 1 count = 0 while q: now = q.popleft() if gnum[now] != 1:continue count += 1 for v in G[now]: gnum[v] -= 1 if gnum[v] == 1: memo[v] = 1 q.append(v) if count & 1: print('Yes') else: print('No')