#include <bits/stdc++.h>
int pi[3][233333];
bool pf[3][233333];
int main() {
  int n, q, k = 0;
  scanf("%d%d", &n, &q);
  for (int i = 1; i <= q; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    if (pf[x][y] == false) {
      pf[x][y] = true;
      pi[3 - x][y - 1]++;
      pi[3 - x][y]++;
      pi[3 - x][y + 1]++;
      k += pi[x][y];
    } else {
      pf[x][y] = false;
      pi[3 - x][y - 1]--;
      pi[3 - x][y]--;
      pi[3 - x][y + 1]--;
      k -= pi[x][y];
    }
    if (k > 0)
      printf("No\n");
    else
      printf("Yes\n");
  }
  return 0;
}
