#include <bits/stdc++.h>
using namespace std;
int grid[3][100005];
int s = 0;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, q;
  cin >> n >> q;
  while (q--) {
    int t1, t2;
    cin >> t1 >> t2;
    int r = grid[t1][t2] ? -1 : 1;
    s += grid[3 - t1][t2] * r;
    s += grid[3 - t1][t2 - 1] * r;
    s += grid[3 - t1][t2 + 1] * r;
    if (!s)
      cout << "Yes" << '\n';
    else
      cout << "No" << '\n';
    grid[t1][t2] = 1 - grid[t1][t2];
  }
  return 0;
}
