#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, q;
  cin >> n >> q;
  int closed = 0;
  vector<vector<int> > a(2, vector<int>(n, 1));
  for (int i = 1; i <= q; i++) {
    int r;
    cin >> r;
    r--;
    int c;
    cin >> c;
    c--;
    a[r][c] = 1 - a[r][c];
    int x = (!a[r][c] ? 1 : -1);
    if (!a[1 - r][c]) closed += x;
    if (c > 0 && !a[1 - r][c - 1]) closed += x;
    if (c + 1 < n && !a[1 - r][c + 1]) closed += x;
    if (!closed)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
