#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, q;
  cin >> n >> q;
  long i, j;
  int** a = new int*[2];
  for (i = 0; i < 2; ++i) {
    a[i] = new int[n + 2];
    for (j = 0; j < n + 2; j++) {
      a[i][j] = 0;
    }
  }
  long res = 0;
  long x, y;
  while (q--) {
    cin >> x >> y;
    if (a[x - 1][y] == 0) {
      a[x - 1][y] = 1;
      for (i = -1; i <= 1; i++) {
        if (a[2 - x][y + i] == 1) res++;
      }
    } else {
      a[x - 1][y] = 0;
      for (i = -1; i <= 1; i++) {
        if (a[2 - x][y + i] == 1) {
          res--;
        }
      }
    }
    if (res == 0)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
