#include <bits/stdc++.h>
using namespace std;
long long int n, q, x, y;
bool lava[2][(int)1e5 + 3];
string get_string() {
  string s;
  getline(cin >> ws, s);
  return s;
}
void solve() {
  long long int change, total = 0;
  cin >> n >> q;
  memset(lava, false, sizeof(lava));
  for (long long int i = 0; i < q; i++) {
    cin >> x >> y;
    x--, y--;
    lava[x][y] = !lava[x][y];
    if (lava[x][y]) {
      change = 1;
    } else {
      change = -1;
    }
    for (long long int j = -1; j <= 1; j++) {
      if (y + j < 0 || y + j >= n) {
        continue;
      }
      if (lava[1 - x][y + j]) {
        total += change;
      }
    }
    if (total == 0) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cout << fixed << showpoint;
  cout << setprecision(9);
  solve();
  return 0;
}
