#include <bits/stdc++.h>
using namespace std;
int gcd__(int a, int b) {
  if (a == 0) return b;
  return gcd__(b % a, a);
}
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    int n, m;
    cin >> n >> m;
    int arr[2][n];
    memset(arr, 0, sizeof(arr));
    int blockedPair = 0;
    while (m--) {
      int x, y;
      cin >> x >> y;
      x--;
      y--;
      int del = (arr[x][y] == 0) ? +1 : -1;
      arr[x][y] = (arr[x][y] ^ 1);
      for (int dy = -1; dy <= 1; dy++) {
        if (y + dy < 0 || y + dy >= n) continue;
        if (arr[1 - x][y + dy] == 1) {
          blockedPair += del;
        }
      }
      cout << ((blockedPair == 0) ? "Yes\n" : "No\n");
    }
  }
}
