#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, q;
  cin >> n >> q;
  int cek[3][100010] = {0};
  int x, y;
  int key = 0;
  while (q--) {
    cin >> x >> y;
    if (cek[x][y] == 0) {
      cek[x][y] = 1;
      for (int i = y - 1; i <= y + 1; i++) {
        if (cek[3 - x][i] == 1) key++;
      }
    } else {
      cek[x][y] = 0;
      for (int i = y - 1; i <= y + 1; i++) {
        if (cek[3 - x][i] == 1) key--;
      }
    }
    if (key)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
  return 0;
}
