#include <bits/stdc++.h>
using namespace std;
const int M = 1e5 + 5;
int g[3][M];
int main() {
  int n, q;
  scanf("%d%d", &n, &q);
  int cnt = 0;
  int r, c;
  for (int i = 0; i < q; i++) {
    scanf("%d%d", &r, &c);
    int ncnt = 0;
    for (int i = -1; i < 2; i++) {
      if (g[3 - r][c + i]) ncnt++;
    }
    g[r][c] ^= 1;
    if (g[r][c])
      cnt += ncnt;
    else
      cnt -= ncnt;
    printf("%s\n", cnt ? "No" : "Yes");
  }
  return 0;
}
