#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
const int maxn = 2e5 + 100;
const int mod = 1e9 + 7;
mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0);
  int n, q;
  cin >> n >> q;
  vector<vector<int> > vis(3, vector<int>(n + 1, 0));
  int cnt = 0;
  while (q--) {
    int first, second;
    cin >> first >> second;
    int delta = 0;
    for (int yy = second - 1; yy <= second + 1; yy++) {
      if (yy < 1 || yy > n) continue;
      if (vis[3 - first][yy]) ++delta;
    }
    vis[first][second] ^= 1;
    if (vis[first][second] == 1)
      cnt += delta;
    else
      cnt -= delta;
    cout << (cnt == 0 ? "YES\n" : "NO\n");
  }
  return 0;
}
