#include "bits/stdc++.h" #define int long long using namespace std; using ll = long long; using P = pair; const ll INF = (1LL << 61); ll mod = 1000000007; int N, M; signed main() { ios::sync_with_stdio(false); cin.tie(0); cin >> N >> M; vector>G(N); for (int i = 0; i < M; i++) { int a, b; cin >> a >> b; a--; b--; G[a].insert(b); G[b].insert(a); } int cnt = 0; for (int i = 0; i < 5010; i++) { for (int j = 0; j < N; j++) { if (G[j].size() == 1) { cnt++; int x = *G[j].begin(); G[j].erase(x); G[x].erase(j); } } } if (cnt % 2 == 1)cout << "Yes" << endl; else cout << "No" << endl; return 0; }