#C問題:鉄道同好会 N,M = map(int,input().split(" ")) array = [[False]*N for i in range(N)] end = 0 for i in range(M): Sa,Sb = map(int,input().split(" ")) array[Sa][Sb] = True array[Sb][Sa] = True for i in range(N): num = array[i].count(True) if num%2 == 1: end += 1 if end >= 3: print("No") exit(0) print("Yes")