#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n, q;
  cin >> n >> q;
  vector<bool> sasta_minecraft[2];
  for (long long int i = 0; i < n; i++) {
    sasta_minecraft[1].push_back(false);
    sasta_minecraft[0].push_back(false);
  }
  long long int forbidden_cell = 0;
  while (q--) {
    long long int r, c;
    cin >> r >> c;
    r--;
    c--;
    bool forbidden_hto = sasta_minecraft[r][c];
    for (long long int i = 0; i <= 1; i++) {
      for (long long int j = c - 1; j <= c + 1; j++) {
        if (i == r) continue;
        if (i < 0 or j >= n or i >= n or j < 0) continue;
        if (sasta_minecraft[i][j] == true) {
          if (forbidden_hto) {
            forbidden_cell--;
          } else
            forbidden_cell++;
        }
      }
    }
    if (sasta_minecraft[r][c])
      sasta_minecraft[r][c] = false;
    else
      sasta_minecraft[r][c] = true;
    if (forbidden_cell >= 1)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
}
int32_t main() {
  ios_base ::sync_with_stdio(false), cin.tie(NULL);
  solve();
  return 0;
}
