#include <bits/stdc++.h>
using namespace std;
int a[2][1000000];
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  int n, q;
  cin >> n >> q;
  int x, y;
  int b = 0;
  for (int i = 0; i < q; i++) {
    cin >> x >> y;
    x -= 1;
    y -= 1;
    int prev = a[x][y];
    for (int r = x - 1; r <= x + 1; r++) {
      for (int c = y - 1; c <= y + 1; c++) {
        if (r < 0 || r > 1 || c < 0 || c > n - 1) continue;
        if (r == x) continue;
        if (a[r][c]) {
          int flag = 0;
          for (int t = r - 1; t >= r + 1; t++) {
            if (r < 0 || r > 1 || c < 0 || c > n - 1)
              continue;
            else if (a[t][c]) {
              flag = 1;
              break;
            }
          }
          if (flag) continue;
          if (prev)
            b--;
          else
            b++;
        }
      }
    }
    if (a[x][y])
      a[x][y] = 0;
    else
      a[x][y] = 1;
    if (b > 0)
      cout << "NO" << '\n';
    else
      cout << "YES" << '\n';
  }
}
