#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int n, q, r, c, v[2][N], ans = 0;
void init() { scanf("%d%d", &n, &q); }
void work() {
  scanf("%d%d", &r, &c);
  v[--r][c] ^= 1;
  if (v[r][c])
    for (int j = -2; ++j <= 1; !v[r ^ 1][c + j] ?: ++ans)
      ;
  else
    for (int j = -2; ++j <= 1; !v[r ^ 1][c + j] ?: --ans)
      ;
}
void prin() { printf(ans ? "No\n" : "Yes\n"); }
int main() {
  init();
  for (int i = 0; ++i <= q; work(), prin())
    ;
  return 0;
}
