import sys INF = float('inf') #10**20,2**63,float('inf') MOD = 10**9 + 7 MOD2 = 998244353 from collections import defaultdict def solve(): def II(): return int(sys.stdin.readline()) def LI(): return list(map(int, sys.stdin.readline().split())) def LC(): return list(input()) def IC(): return [int(c) for c in input()] def MI(): return map(int, sys.stdin.readline().split()) N,M = MI() Sub = defaultdict(lambda:0) Graph = [[] for _ in range(N+1)] for _ in range(M): A,B = MI() Graph[A].append(B) Graph[B].append(A) Flower = defaultdict(lambda:0) #print(Graph) for _ in range(N): for n in range(1,N+1): if len(Graph[n]) -Sub[n] == 1: Sub[n] = len(Graph[n]) Flower[n] = 1 Tmp = 0 for g in Graph[n]: if Flower[g] == 0: Sub[g] += 1 if sum(list(Flower.values())) %2 == 1: print("Yes") else: print("No") return solve() #sys.setrecursionlimit(10 ** 6)#再帰関数ではコメントにしないこと!!