#include <bits/stdc++.h>
using namespace std;
long long unsigned int blockedPaths = 0;
void checkBlocks(vector<vector<bool> > matrix, int row, int col, int size,
                 int incdec) {
  if (row == 1) {
    if (col - 1 >= 0 && matrix[row + 1][col - 1]) blockedPaths += incdec;
    if (col + 1 >= 0 && matrix[row + 1][col + 1]) blockedPaths += incdec;
    if (matrix[row + 1][col]) blockedPaths += incdec;
  } else {
    if (col - 1 >= 0 && matrix[row - 1][col - 1]) blockedPaths += incdec;
    if (col + 1 >= 0 && matrix[row - 1][col + 1]) blockedPaths += incdec;
    if (matrix[row - 1][col]) blockedPaths += incdec;
  }
}
int main() {
  int n, q, x, y;
  cin >> n >> q;
  vector<vector<bool> > grid(4, vector<bool>(n + 2, 0));
  for (int qitr = 0; qitr < q; qitr++) {
    cin >> x >> y;
    grid[x][y] = !grid[x][y];
    if (grid[x][y]) {
      checkBlocks(grid, x, y, n, 1);
    } else {
      checkBlocks(grid, x, y, n, -1);
    }
    blockedPaths >= 1 ? cout << "No\n" : cout << "Yes\n";
  }
  return 0;
}
