#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, q, i, aa, bb, ans = 0, j;
  cin >> n >> q;
  vector<pair<int, int>> v(q);
  for (i = 0; i < q; i++) cin >> v[i].first >> v[i].second;
  int a[2][n];
  for (i = 0; i < 2; i++) {
    for (j = 0; j < n; j++) a[i][j] = 0;
  }
  for (i = 0; i < q; i++) {
    aa = (v[i].first) - 1;
    bb = (v[i].second) - 1;
    if (a[aa][bb] == 0) {
      a[aa][bb] = 1;
      if (aa == 1) {
        if (a[0][bb] == 1) ans++;
        if (bb > 0 && a[0][bb - 1] == 1) ans++;
        if (bb < n - 1 && a[0][bb + 1] == 1) ans++;
      }
      if (aa == 0) {
        if (a[1][bb] == 1) ans++;
        if (bb > 0 && a[1][bb - 1] == 1) ans++;
        if (bb < n - 1 && a[1][bb + 1] == 1) ans++;
      }
    } else {
      a[aa][bb] = 0;
      if (aa == 1) {
        if (a[0][bb] == 1) ans--;
        if (bb > 0 && a[0][bb - 1] == 1) ans--;
        if (bb < n - 1 && a[0][bb + 1] == 1) ans--;
      }
      if (aa == 0) {
        if (a[1][bb] == 1) ans--;
        if (bb > 0 && a[1][bb - 1] == 1) ans--;
        if (bb < n - 1 && a[1][bb + 1] == 1) ans--;
      }
    }
    if (ans > 0)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
}
