#include // O(N^2) time int solve_adj_mat() { int i, N, M, u, w, deg[5001] = {}; char adj[5001][5001] = {}; scanf("%d %d", &N, &M); for (i = 0; i < M; i++) { scanf("%d %d", &u, &w); adj[u][w] = 1; adj[w][u] = 1; deg[u]++; deg[w]++; } int ans = 0; while (1) { for (u = 1; u <= N; u++) if (deg[u] == 1) break; if (u > N) break; ans ^= 1; for (w = 1; w <= N; w++) { if (adj[u][w] == 0) continue; adj[u][w] = 0; adj[w][u] = 0; deg[u]--; deg[w]--; } } return ans; } int main() { if (solve_adj_mat() == 1) printf("Yes\n"); else printf("No\n"); fflush(stdout); return 0; }