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