#include <bits/stdc++.h>
using namespace std;
const int INF = int(1e9 + 7);
vector<vector<bool> > mapa;
int c = 0;
void update(int x, int y) {
  int add;
  if (mapa[x][y])
    add = -1;
  else
    add = +1;
  mapa[x][y] = !mapa[x][y];
  if (x == 2)
    x = 1;
  else
    x = 2;
  if (mapa[x][y]) c += add;
  if (mapa[x][y - 1]) c += add;
  if (mapa[x][y + 1]) c += add;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, q, x, y;
  cin >> n >> q;
  mapa.assign(3, vector<bool>(n + 2, false));
  while (q--) {
    cin >> x >> y;
    update(x, y);
    if (c == 0)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
