N, M = gets.split(" ").map{|s| s.to_i} V = Array.new(N) {Array.new(N, 0)} M.times { a, b = gets.split(" ").map{|s| s.to_i} V[a-1][b-1] = V[b-1][a-1] = 1 } cnt = 0 change = true while change do change = false 0.upto(N-1) {|i| if V[i].sum == 1 then j = V[i].index(1) V[i][j] = V[j][i] = 0 change = true cnt += 1 end } end puts cnt % 2 == 1 ? "Yes" : "No"