#include <bits/stdc++.h>
using namespace std;
template <class T>
ostream& operator<<(ostream& os, vector<T> v) {
  for (long long i = (0); i < ((long long)(v).size()); i++)
    os << (i ? " " : "") << v[i];
  return os;
}
const bool debug = 1;
long long n, q;
long long tab[2][200000];
bool is_valid(long long i) {
  if (i < 0 || i >= n - 1) return true;
  if (!tab[0][i] && !tab[0][i + 1]) {
    return true;
  } else if (!tab[1][i] && !tab[1][i + 1]) {
    return true;
  } else {
    return false;
  }
}
signed main() {
  cin >> n >> q;
  long long c = 0;
  for (long long i = (0); i < (q); i++) {
    long long a, b;
    cin >> a >> b;
    a--;
    b--;
    c += is_valid(b);
    c += is_valid(b - 1);
    tab[a][b] ^= 1;
    c -= is_valid(b);
    c -= is_valid(b - 1);
    if (c == 0)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
