#include <bits/stdc++.h>
bool blc[4][(int)1e5 + 70];
int main() {
  int n, q;
  scanf("%d%d", &n, &q);
  int bad = 0;
  while (q--) {
    int r, c;
    scanf("%d%d", &r, &c);
    blc[r][c] ^= 1;
    int dr = r ^ 3;
    for (int j : {1, -1, 0}) {
      if (blc[dr][c + j]) bad += (blc[r][c] ? 1 : -1);
    }
    puts((!bad ? "Yes" : "No"));
  }
}
