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