#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, q;
  cin >> n >> q;
  map<pair<int, int>, int> m1;
  map<int, int> m2, m3, m4;
  int col_block = 0;
  int diagnol_block = 0;
  for (int i = 0; i < q; i++) {
    int u, v;
    cin >> u >> v;
    if (m1[{u, v}] == 1) {
      m1[{u, v}] = 0;
      m2[u + v]--;
      if (m2[u + v] == 1) {
        diagnol_block--;
      }
      m3[v]--;
      if (m3[v] == 1) {
        col_block--;
      }
      if (u == 1) {
        if (m1[{u + 1, v + 1}] == 1) {
          diagnol_block--;
        }
      } else {
        if (m1[{u - 1, v - 1}] == 1) {
          diagnol_block--;
        }
      }
    } else {
      m1[{u, v}]++;
      m2[u + v]++;
      if (m2[u + v] == 2) {
        diagnol_block++;
      }
      m3[v]++;
      if (m3[v] == 2) {
        col_block++;
      }
      if (u == 1) {
        if (m1[{u + 1, v + 1}] == 1) {
          diagnol_block++;
        }
      } else {
        if (m1[{u - 1, v - 1}] == 1) {
          diagnol_block++;
        }
      }
    }
    if (col_block || diagnol_block) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
    }
  }
}
