#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int i, n, q, x, y, bp = 0, delta = 0;
  cin >> n >> q;
  vector<vector<long long int> > V(2, vector<long long int>(n, 0));
  while (q--) {
    cin >> x >> y;
    x--;
    y--;
    if (V[x][y] == 0) {
      V[x][y] = 1;
      delta = 1;
    } else {
      V[x][y] = 0;
      delta = -1;
    }
    for (i = -1; i <= 1; i++) {
      if (y + i < 0 || y + i >= n) continue;
      if (V[1 - x][y + i] == 1) bp += delta;
    }
    if (bp == 0) {
      cout << "yes"
           << "\n";
    } else {
      cout << "no"
           << "\n";
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
