#include <bits/stdc++.h>
using namespace std;
int grid[3][100069];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  memset(grid, 0, sizeof grid);
  int n, q;
  int bad = 0;
  cin >> n >> q;
  for (int i = 0; i < q; i++) {
    int r, c;
    cin >> r >> c;
    if (grid[r][c] == 1) {
      int q = (r == 1) ? 2 : 1;
      for (int j = max(c - 1, 1); j < min(c + 2, n + 1); j++) {
        if (grid[q][j] == 1) bad--;
      }
      grid[r][c] = 0;
    } else {
      int q = (r == 1) ? 2 : 1;
      for (int j = max(c - 1, 1); j < min(c + 2, n + 1); j++) {
        if (grid[q][j] == 1) bad++;
      }
      grid[r][c] = 1;
    }
    if (bad == 0)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
