#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL);
  int n, q;
  cin >> n >> q;
  int n_problems = 0;
  vector<vector<int>> arr(2, vector<int>(n));
  for (int i = 0; i < q; ++i) {
    int r, c;
    cin >> r >> c;
    --r, --c;
    if (arr[r][c]) {
      int issues_here = 0;
      issues_here += arr[1 ^ r][c];
      if (c) issues_here += arr[1 ^ r][c - 1];
      if (c != n - 1) issues_here += arr[1 ^ r][c + 1];
      n_problems -= issues_here;
    } else {
      int issues_here = 0;
      issues_here += arr[1 ^ r][c];
      if (c) issues_here += arr[1 ^ r][c - 1];
      if (c != n - 1) issues_here += arr[1 ^ r][c + 1];
      n_problems += issues_here;
    }
    arr[r][c] ^= 1;
    cout << (n_problems ? "no" : "yes") << '\n';
  }
}
