#include using namespace std; int main() { int n, m; cin >> n >> m; vector> g(n); vector d(n); for (int i = 0; i < m;i++) { int a, b; cin >> a >> b; a--; b--; g[a].push_back(b); g[b].push_back(a); d[a]++; d[b]++; } int cnt = 0; vector sel(n); while(1) { int nxt = -1; for (int i = 0; i < n;i++) { if(d[i] == 1) { nxt = i; break; } } if(nxt == -1) { break; } cnt++; d[nxt] = 0; for(int adj: g[nxt]) { if(d[adj] == 0) { continue; } d[adj]--; } } if(cnt % 2 == 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }