#include <bits/stdc++.h>
using namespace std;
int n, q;
vector<vector<int> > lava;
void input() {
  cin >> n >> q;
  lava.resize(2, vector<int>(n, 0));
}
int main() {
  input();
  int blocked = 0;
  while (q--) {
    int x, y;
    cin >> x >> y;
    x--;
    y--;
    int delta = (lava[x][y] == 0) ? 1 : -1;
    lava[x][y] = 1 - lava[x][y];
    for (int dy = -1; dy <= 1; dy++) {
      if (y + dy < 0 || y + dy >= n) continue;
      if (lava[1 - x][y + dy] == 1) blocked += delta;
    }
    cout << ((blocked == 0) ? "Yes\n" : "No\n");
  }
  return 0;
}
