#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long ans = 0, r, d, a, pos, b, i, n, k, m, t, tot = 0, c = 0, s = 0, t1,
            c1 = 0, k4 = 0, c2 = 0, j = 0, k1, k2, k3;
  char ch;
  string s1;
  ios::sync_with_stdio(0);
  cin.tie(0);
  t = 1;
  cin >> n >> t;
  vector<long long> v(n);
  long long a1[2][200010] = {0};
  c = 0;
  while (t--) {
    cin >> a >> b;
    a--;
    b--;
    if (a1[a][b])
      d = -1;
    else
      d = 1;
    a1[a][b] = 1 - a1[a][b];
    for (i = -1; i <= 1; i++) {
      if (b + i < 0 || b + i > n - 1) continue;
      if (a1[1 - a][b + i] == 1) c += d;
    }
    if (c == 0)
      cout << "Yes"
           << "\n";
    else
      cout << "No"
           << "\n";
  }
}
