#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int n, q, bad_cells = 0;
  cin >> n >> q;
  bool chck[3][n + 1];
  memset(chck, false, sizeof(chck));
  for (int i = 0; i < q; i++) {
    int row, col;
    cin >> row >> col;
    if (chck[row][col] == false) {
      chck[row][col] = true;
      for (int r = row - 1; r <= row + 1; r++) {
        if (r == 0 || r == 3) continue;
        if (r == row) continue;
        for (int c = col - 1; c <= col + 1; c++) {
          if (c == 0 || c == n + 1)
            continue;
          else {
            if (chck[r][c] == true) {
              bad_cells++;
            }
          }
        }
      }
    } else {
      chck[row][col] = false;
      for (int r = row - 1; r <= row + 1; r++) {
        if (r == 0 || r == 3) continue;
        if (r == row) continue;
        for (int c = col - 1; c <= col + 1; c++) {
          if (c == 0 || c == n + 1)
            continue;
          else {
            if (chck[r][c] == true) {
              bad_cells--;
            }
          }
        }
      }
    }
    if (bad_cells > 0)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
  return 0;
}
