#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10, mod = 1e9 + 7;
const long long inf = 2e16 + 10;
int a[maxn];
int A, B, n;
void add(int x, int y) {
  A -= a[y] == 3;
  if (y > 0) B -= (a[y - 1] | a[y]) == 3;
  if (y < n - 1) B -= (a[y] | a[y + 1]) == 3;
  a[y] ^= 1 << x;
  A += a[y] == 3;
  if (y > 0) B += (a[y - 1] | a[y]) == 3;
  if (y < n - 1) B += (a[y] | a[y + 1]) == 3;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie();
  int q;
  cin >> n >> q;
  while (q--) {
    int a, b;
    cin >> a >> b;
    add(--a, --b);
    cout << (A == 0 && B == 0 ? "Yes\n" : "No\n");
  }
  return 0;
}
