#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, q;
  cin >> n >> q;
  vector<vector<bool>> v(3, vector<bool>(n + 2));
  int c = 0;
  while (q--) {
    int i, j;
    cin >> i >> j;
    bool d = v[i][j];
    v[i][j] = !d;
    if (v[i][j]) {
      int x;
      if (i == 1)
        x = 2;
      else
        x = 1;
      if (v[x][j]) c++;
      if (v[x][j - 1]) c++;
      if (v[x][j + 1]) c++;
    } else {
      int x;
      if (i == 1)
        x = 2;
      else
        x = 1;
      if (v[x][j]) c--;
      if (v[x][j - 1]) c--;
      if (v[x][j + 1]) c--;
    }
    if (c)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
