#include <bits/stdc++.h>
#pragma optimize("O2")
using namespace std;
set<pair<long long, long long>> A;
int32_t main() {
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(false);
  long long n, q;
  cin >> n >> q;
  long long block = 0;
  for (long long i = 0; i < q; i++) {
    long long x, y;
    cin >> x >> y;
    if (A.find({x, y}) == A.end()) {
      A.insert({x, y});
      if (A.find({3 - x, y - 1}) != A.end()) {
        block++;
      }
      if (A.find({3 - x, y}) != A.end()) {
        block++;
      }
      if (A.find({3 - x, y + 1}) != A.end()) {
        block++;
      }
    } else {
      A.erase({x, y});
      if (A.find({3 - x, y - 1}) != A.end()) {
        block--;
      }
      if (A.find({3 - x, y}) != A.end()) {
        block--;
      }
      if (A.find({3 - x, y + 1}) != A.end()) {
        block--;
      }
    }
    if (block == 0) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
