#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, q;
  cin >> n >> q;
  vector<vector<long long>> grid(2, vector<long long>(n));
  long long cnt = 0;
  long long r, c;
  while (q--) {
    cin >> r >> c;
    --r;
    --c;
    int prev = grid[r][c];
    if (grid[0][c] == 1 && grid[1][c] == 1) {
      --cnt;
    }
    if (c > 0 && grid[!r][c - 1] == 1 && grid[r][c] == 1) {
      --cnt;
    }
    if (c < n - 1 && grid[!r][c + 1] == 1 && grid[r][c] == 1) {
      --cnt;
    }
    grid[r][c] = !grid[r][c];
    if (prev == 0 && grid[!r][c] == 1) {
      ++cnt;
    }
    if (prev == 0 && c > 0 && grid[!r][c - 1] == 1) {
      ++cnt;
    }
    if (prev == 0 && c < n - 1 && grid[!r][c + 1] == 1) {
      ++cnt;
    }
    cout << (cnt > 0 ? "No\n" : "Yes\n");
  }
  return 0;
}
