import sys input = sys.stdin.readline N, M = map(int, input().split()) e = [[] for _ in range(N + 1)] inc = [0] * (N + 1) for _ in range(M): u, v = map(int, input().split()) e[u].append(v) e[v].append(u) inc[u] += 1 inc[v] += 1 import heapq hpush = heapq.heappush hpop = heapq.heappop h = [] for x in range(1, N + 1): hpush(h, (inc[x], x)) res = 0 while len(h): c, x = hpop(h) if inc[x] != c: hpush(h, (inc[x], x)) continue if c != 1: continue for y in e[x]: inc[y] -= 1 hpush(h, (inc[y], y)) inc[x] = 0 res += 1 if res & 1: print("Yes") else: print("No")