#include using namespace std; #define rep(i, n) for (int i=0; i> N >> M; set G[N]; rep(i, M) { int A, B; cin >> A >> B; G[A-1].insert(B-1); G[B-1].insert(A-1); } rep(i, N) { bool flag = true; rep(v, N) if (G[v].size()==1) { int nv = *G[v].begin(); G[v].erase(nv); G[nv].erase(v); flag = false; break; } if (flag) { cout << (i%2==0 ? "No" : "Yes") << endl; break; } } }