#include <bits/stdc++.h>
using namespace std;
int a[2][100003];
int main() {
  int n, q;
  cin >> n >> q;
  int f = 0;
  while (q--) {
    int x, y;
    cin >> x >> y;
    int b = a[x - 1][y - 1] ? -1 : 1;
    f += b * (a[2 - x][y - 2] + a[2 - x][y - 1] + a[2 - x][y]);
    a[x - 1][y - 1] ^= 1;
    cout << (f ? "No" : "Yes") << "\n";
  }
  return 0;
}
