#include <bits/stdc++.h>
using namespace std;
int main() {
  bool* uno;
  bool* dos;
  long long int nblocks = 0;
  long long int n, q;
  cin >> n >> q;
  uno = new bool[n + 2];
  dos = new bool[n + 2];
  memset(uno, 1, n + 2);
  memset(dos, 1, n + 2);
  for (int i = 0; i < q; i++) {
    int a;
    long long int b;
    cin >> a >> b;
    if (a == 1) {
      uno[b] = !uno[b];
      if (!dos[b - 1]) {
        if (!uno[b])
          nblocks++;
        else
          nblocks--;
      }
      if (!dos[b]) {
        if (!uno[b])
          nblocks++;
        else
          nblocks--;
      }
      if (!dos[b + 1]) {
        if (!uno[b])
          nblocks++;
        else
          nblocks--;
      }
    } else {
      dos[b] = !dos[b];
      if (!uno[b - 1]) {
        if (!dos[b])
          nblocks++;
        else
          nblocks--;
      }
      if (!uno[b]) {
        if (!dos[b])
          nblocks++;
        else
          nblocks--;
      }
      if (!uno[b + 1]) {
        if (!dos[b])
          nblocks++;
        else
          nblocks--;
      }
    }
    if (!nblocks)
      cout << "yes\n";
    else
      cout << "no\n";
  }
  return 0;
}
