#include <bits/stdc++.h>
using namespace std;
int a[2][100100];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  int cnt = 0;
  int q;
  cin >> q;
  for (int i = 0; i < (int)(q); ++i) {
    int x, y;
    cin >> x >> y;
    --x;
    for (int j = 0; j < (int)(3); ++j) {
      if (a[x][y]) {
        cnt -= a[1 - x][y - 1 + j];
      } else {
        cnt += a[1 - x][y - 1 + j];
      }
    }
    a[x][y] = 1 - a[x][y];
    if (cnt == 0) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
