#include <bits/stdc++.h>
using namespace std;
int main() {
  int L, K, D = 0;
  cin >> L >> K;
  bool A[100005][2] = {0};
  int X, Y;
  for (int I = 0; I < K; I++) {
    cin >> X >> Y;
    X--;
    Y--;
    bool S = A[Y][X];
    bool NS = 1 - A[Y][X];
    int lava = 0;
    for (int J = Y - 1; J <= Y + 1; J++) {
      if (J < 0 || J >= L) {
        continue;
      }
      lava += A[J][1 - X];
    }
    D += lava * (NS - S);
    cout << ((D > 0) ? "No" : "Yes");
    cout << endl;
    A[Y][X] = NS;
  }
}
