#include <bits/stdc++.h>
using namespace std;
bool a[2][100005];
int main() {
  int n, q;
  cin >> n >> q;
  int constraints_violated = 0;
  for (int i = 0; i < q; i++) {
    int r, c;
    cin >> r >> c;
    r--;
    c--;
    a[r][c] = !a[r][c];
    if (a[r][c]) {
      if (c > 0) {
        if (a[1 - r][c - 1]) {
          constraints_violated++;
        }
      }
      if (a[1 - r][c]) {
        constraints_violated++;
      }
      if (c < n - 1) {
        if (a[1 - r][c + 1]) {
          constraints_violated++;
        }
      }
    }
    if (!a[r][c]) {
      if (c > 0) {
        if (a[1 - r][c - 1]) {
          constraints_violated--;
        }
      }
      if (a[1 - r][c]) {
        constraints_violated--;
      }
      if (c < n - 1) {
        if (a[1 - r][c + 1]) {
          constraints_violated--;
        }
      }
    }
    if (constraints_violated == 0) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
