#include <bits/stdc++.h>
using namespace std;
int d[100005];
set<int> s;
void upd(int y) {
  if (d[y] == 3 || d[y + 1] == 3 || (d[y] == 1 && d[y + 1] == 2) ||
      (d[y] == 2 && d[y + 1] == 1) || (d[y] == 1 && d[y + 1] == 2)) {
    s.insert(y);
  } else {
    s.erase(y);
  }
}
int main(int argc, char const *argv[]) {
  int n = 0;
  int q = 0;
  scanf("%d%d", &n, &q);
  for (int i = 0; i < q; i++) {
    int x = 0;
    int y = 0;
    scanf("%d%d", &x, &y);
    d[y] ^= x;
    if (y > 1) {
      upd(y - 1);
    }
    if (y < n) {
      upd(y);
    }
    if (s.empty()) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }
  return 0;
}
