#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, q;
  cin >> n >> q;
  int x, y;
  map<int, int> mp1;
  map<int, int> mp2;
  int block = 0;
  for (int i = 0; i < q; i++) {
    cin >> x >> y;
    if (x == 1) {
      int z = mp1[y];
      if (z % 2 == 0) {
        mp1[y]++;
        int w = mp2[y - 1];
        if (w % 2 != 0) {
          block++;
        }
        w = mp2[y];
        if (w % 2 != 0) {
          block++;
        }
        w = mp2[y + 1];
        if (w % 2 != 0) {
          block++;
        }
      } else {
        mp1[y]++;
        int w = mp2[y - 1];
        if (w % 2 != 0) {
          block--;
        }
        w = mp2[y];
        if (w % 2 != 0) {
          block--;
        }
        w = mp2[y + 1];
        if (w % 2 != 0) {
          block--;
        }
      }
    } else {
      int z = mp2[y];
      if (z % 2 == 0) {
        mp2[y]++;
        int w = mp1[y - 1];
        if (w % 2 != 0) {
          block++;
        }
        w = mp1[y];
        ;
        if (w % 2 != 0) {
          block++;
        }
        w = mp1[y + 1];
        ;
        if (w % 2 != 0) {
          block++;
        }
      } else {
        mp2[y]++;
        int w = mp1[y - 1];
        if (w % 2 != 0) {
          block--;
        }
        w = mp1[y];
        if (w % 2 != 0) {
          block--;
        }
        w = mp1[y + 1];
        if (w % 2 != 0) {
          block--;
        }
      }
    }
    if (block == 0) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
