# https://yukicoder.me/problems/no/1610 # No.1610 She Loves Me, She Loves Me Not, ... n, m = map(int, input().split()) AB = [list(map(int, input().split())) for _ in range(m)] graph = [[] for _ in range(n)] for a, b in AB: a -= 1 b -= 1 graph[a].append(b) graph[b].append(a) cnt = 0 flg = True while flg: flg = False for i in range(n): if len(graph[i]) == 1: flg = True cnt += 1 nxt = graph[i].pop() graph[nxt].remove(i) if cnt % 2 == 1: print("Yes") else: print("No")