#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n, t, counterof = 0;
  cin >> n >> t;
  bool arr[3][n + 1];
  bool visited[n + 1];
  int dx[] = {-1, 0, 1};
  memset(arr, 0, sizeof arr);
  memset(visited, 0, sizeof visited);
  for (int i = 0; i < t; i++) {
    int row, col;
    cin >> row >> col;
    arr[row][col] = !arr[row][col];
    if (arr[row][col] == 1) {
      if (row == 1) {
        for (int j = 0; j < 3; j++) {
          if (dx[j] + col > n || dx[j] + col < 1) {
            continue;
          }
          if (arr[2][dx[j] + col]) {
            counterof++;
          }
        }
      } else {
        for (int j = 0; j < 3; j++) {
          if (dx[j] + col > n || dx[j] + col < 1) {
            continue;
          }
          if (arr[1][dx[j] + col]) {
            counterof++;
          }
        }
      }
    } else {
      if (row == 1) {
        for (int j = 0; j < 3; j++) {
          if (dx[j] + col > n || dx[j] + col < 1) {
            continue;
          }
          if (arr[2][dx[j] + col]) {
            counterof--;
          }
        }
      } else {
        for (int j = 0; j < 3; j++) {
          if (dx[j] + col > n || dx[j] + col < 1) {
            continue;
          }
          if (arr[1][dx[j] + col]) {
            counterof--;
          }
        }
      }
    }
    if (counterof) {
      cout << "No\n";
    } else {
      cout << "Yes\n";
    }
  }
  return 0;
}
