#include <bits/stdc++.h>
using namespace std;
bool maze[3][100001];
int judge(int r, int c) {
  if (r == 1) {
    if (c == 100000) return maze[2][c - 1] + maze[2][c];
    return maze[2][c - 1] + maze[2][c] + maze[2][c + 1];
  } else {
    if (c == 1) return maze[1][1] + maze[1][2];
    if (c == 100000) return maze[1][c - 1] + maze[1][c];
    return maze[1][c - 1] + maze[1][c] + maze[1][c + 1];
  }
}
int main() {
  memset(maze, 0, sizeof(maze));
  int n, q, cont = 0, r, c;
  cin >> n >> q;
  for (int i = 1; i <= q; i++) {
    cin >> r >> c;
    if (maze[r][c] == 0) {
      maze[r][c] = 1;
      cont += judge(r, c);
    } else {
      maze[r][c] = 0;
      cont -= judge(r, c);
    }
    cout << (cont == 0 ? "Yes" : "No") << endl;
  }
  return 0;
}
