#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, q;
  cin >> n >> q;
  bool vis[3][n + 1];
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < n + 1; j++) vis[i][j] = false;
  }
  int bad_nei = 0;
  while (q--) {
    int row, col;
    cin >> row >> col;
    for (int i = row - 1; i <= row + 1; i++) {
      for (int j = col - 1; j <= col + 1; j++) {
        if (i == row) continue;
        if (!(i >= 1 && i <= 2 && j >= 1 && j <= n)) continue;
        if (vis[i][j]) {
          if (vis[row][col])
            bad_nei--;
          else
            bad_nei++;
        }
      }
    }
    vis[row][col] = !vis[row][col];
    if (bad_nei >= 1)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
}
