#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, q;
  cin >> n >> q;
  vector<vector<int>> v(3, vector<int>(n + 1, 0));
  long blocker = 0;
  long a, b;
  for (long i = 0; i < q; i++) {
    cin >> a >> b;
    if (v[a][b] == 0) {
      if (a == 1) {
        if (v[a + 1][b] == 1) blocker++;
        if (b - 1 >= 1 && v[a + 1][b - 1] == 1) blocker++;
        if (b + 1 < n && v[a + 1][b + 1] == 1) blocker++;
      } else {
        if (v[a - 1][b] == 1) blocker++;
        if (b - 1 >= 1 && v[a - 1][b - 1] == 1) blocker++;
        if (b + 1 <= n && v[a - 1][b + 1] == 1) blocker++;
      }
    } else if (v[a][b] == 1) {
      if (a == 1) {
        if (v[a + 1][b] == 1) blocker--;
        if (b - 1 >= 1 && v[a + 1][b - 1] == 1) blocker--;
        if (b + 1 < n && v[a + 1][b + 1] == 1) blocker--;
      } else {
        if (v[a - 1][b] == 1) blocker--;
        if (b - 1 >= 1 && v[a - 1][b - 1] == 1) blocker--;
        if (b + 1 <= n && v[a - 1][b + 1] == 1) blocker--;
      }
    }
    v[a][b] ^= 1;
    if (blocker > 0)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
