from collections import deque n,m=map(int,input().split()) g=[[] for _ in range(n)] v=[0]*n for _ in range(m): a,b=map(int,input().split()) a-=1;b-=1 g[a].append(b) g[b].append(a) v[a]+=1;v[b]+=1 q=deque() for i in range(n): if v[i]==1: q.append(i) cnt=0 while q: now=q.popleft() if v[now]>=1: v[now]-=1 cnt+=1 for to in g[now]: if v[to]>=1: v[to]-=1 if v[to]==1: q.append(to) print('Yes' if cnt%2 else 'No')