#include <bits/stdc++.h>
using namespace std;
inline long long int absdiff(long long int a, long long int b) {
  return (a > b) ? a - b : b - a;
}
long long int fast_expo(long long int x, long long int p) {
  if (p == 0)
    return 1;
  else if (p % 2 == 0) {
    long long int t = fast_expo(x, p / 2) % 1000000007;
    return (t * t) % 1000000007;
  } else
    return (x * (fast_expo(x, p - 1)) % 1000000007) % 1000000007;
}
long long int gcd(long long int a, long long int b) {
  if (a == 0 || b == 0)
    return a + b;
  else
    return gcd(b % a, a);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long int t_c;
  t_c = 1;
  for (long long int t = 0; t < t_c; ++t) {
    long long int n, q;
    cin >> n >> q;
    map<pair<long long int, long long int>, long long int> M, st;
    for (long long int i = 0; i < q; ++i) {
      long long int x, y;
      cin >> x >> y;
      if (st.find(make_pair(x, y)) == st.end()) {
        if (st.find(make_pair(3 - x, y)) != st.end()) {
          M[make_pair(y, y)] = 1;
        }
        if (st.find(make_pair(3 - x, y - 1)) != st.end()) {
          if (x == 1)
            M[make_pair(y, y - 1)] = 1;
          else
            M[make_pair(y - 1, y)] = 1;
        }
        if (st.find(make_pair(3 - x, y + 1)) != st.end()) {
          if (x == 1)
            M[make_pair(y, y + 1)] = 1;
          else
            M[make_pair(y + 1, y)] = 1;
        }
        st[make_pair(x, y)] = 1;
      } else {
        if (M.find(make_pair(y, y)) != M.end()) M.erase(make_pair(y, y));
        if (x == 1) {
          if (M.find(make_pair(y, y - 1)) != M.end())
            M.erase(make_pair(y, y - 1));
          if (M.find(make_pair(y, y + 1)) != M.end())
            M.erase(make_pair(y, y + 1));
        } else {
          if (M.find(make_pair(y - 1, y)) != M.end())
            M.erase(make_pair(y - 1, y));
          if (M.find(make_pair(y + 1, y)) != M.end())
            M.erase(make_pair(y + 1, y));
        }
        st.erase(make_pair(x, y));
      }
      if (M.size() == 0) {
        cout << "Yes\n";
      } else {
        cout << "No\n";
      }
    }
  }
  return 0;
}
