#include <bits/stdc++.h>
using namespace std;
int blocked1[100010], blocked2[100010];
int main() {
  long long n, q, a, b, lastblock1 = 0, lastblock2 = 0, block = 0;
  cin >> n >> q;
  for (int j = 0; j < q; j++) {
    cin >> a >> b;
    if (a == 1) {
      if (blocked1[b] == 1) {
        if (blocked2[b]) block--;
        if (blocked2[b - 1]) block--;
        if (blocked2[b + 1]) block--;
        blocked1[b] = 0;
      } else {
        if (blocked2[b]) block++;
        if (blocked2[b - 1]) block++;
        if (blocked2[b + 1]) block++;
        blocked1[b] = 1;
      }
    } else {
      if (blocked2[b]) {
        if (blocked1[b]) block--;
        if (blocked1[b - 1]) block--;
        if (blocked1[b + 1]) block--;
        blocked2[b] = 0;
      } else {
        if (blocked1[b]) block++;
        if (blocked1[b - 1]) block++;
        if (blocked1[b + 1]) block++;
        blocked2[b] = 1;
      }
    }
    int lst;
    if (block == 0)
      cout << "YES" << endl;
    else if (block > 0)
      cout << "NO" << endl;
    else
      lst = 1 / 0;
  }
}
