#include <bits/stdc++.h>
using namespace std;
int board[3][100000 + 5];
int dy[3] = {-1, 0, 1};
int main() {
  memset(board, 0, sizeof(board));
  int n, q, fail = 0;
  scanf("%d%d", &n, &q);
  for (int i = 0; i < q; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    int pos = 3 - x;
    board[x][y] = 1 - board[x][y];
    for (int i = 0; i < 3; i++) {
      if ((y + dy[i] >= 1 && y + dy[i] <= n)) {
        if (board[x][y] == 0) {
          if (board[pos][y + dy[i]] == 1) fail--;
        } else {
          if (board[pos][y + dy[i]] == 1) fail++;
        }
      }
    }
    if (fail == 0) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }
  return 0;
}
