#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, q, blocks = 0;
  cin >> n >> q;
  bool flag = 1;
  set<int> s;
  while (q--) {
    int r, c, l;
    cin >> r >> c;
    r--;
    c--;
    l = 2 * c + r;
    if (s.count(2 * c + r)) {
      s.erase(2 * c + r);
      if (r == 0 && s.count(l + 1)) blocks--;
      if (r == 0 && s.count(l - 1)) blocks--;
      if (r == 0 && s.count(l + 3)) blocks--;
      if (r == 1 && s.count(l - 1)) blocks--;
      if (r == 1 && s.count(l - 3)) blocks--;
      if (r == 1 && s.count(l + 1)) blocks--;
      if (!blocks) {
        flag = 1;
      } else
        flag = 0;
    } else {
      s.insert(2 * c + r);
      if (r == 0 && s.count(l + 1)) blocks++;
      if (r == 0 && s.count(l - 1)) blocks++;
      if (r == 0 && s.count(l + 3)) blocks++;
      if (r == 1 && s.count(l - 1)) blocks++;
      if (r == 1 && s.count(l - 3)) blocks++;
      if (r == 1 && s.count(l + 1)) blocks++;
      if (blocks) {
        flag = 0;
      } else
        flag = 1;
    }
    if (flag)
      cout << "yes" << endl;
    else
      cout << "no" << endl;
  }
}
