#include int a[10004], b[10004]; int ji[5003]; int main() { int n, m; scanf("%d %d", &n, &m); int i, j; for (i = 0; i < m; i++) { scanf("%d %d", &a[i], &b[i]); a[i]--; b[i]--; a[i + m] = b[i]; b[i + m] = a[i]; } for (i = 0; i < n; i++) ji[i] = 0; for (i = 0; i < 2 * m; i++) ji[a[i]]++; int cnt = 0; for (;;) { for (j = -1, i = 0; i < n; i++) if (ji[i] == 1) j = i; if (j < 0) break; cnt++; for (i = 0; i < 2 * m; i++) if (a[i] == j) ji[b[i]]--; ji[j]--; } if (cnt % 2 > 0) printf("Yes\n"); else printf("No\n"); return 0; }