#include <bits/stdc++.h>
using namespace std;
int n, q, a[3][100009];
int main() {
  cin >> n >> q;
  int cnt = 0;
  while (q--) {
    int x, y;
    cin >> x >> y;
    if (!a[x][y]) {
      for (int i = -1; i <= 1; ++i)
        if (a[3 - x][y + i] == 1) ++cnt;
      a[x][y] = 1;
    } else {
      for (int i = -1; i <= 1; ++i)
        if (a[3 - x][y + i] == 1) --cnt;
      a[x][y] = 0;
    }
    if (cnt)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
}
