#include <bits/stdc++.h>
using namespace std;
bool bloque[2][(long long)1e5];
signed main() {
  long long largeur, nReqs, nBads;
  cin >> largeur >> nReqs;
  nBads = 0;
  while (nReqs--) {
    long long x, y;
    cin >> x >> y;
    --x;
    --y;
    if (bloque[x][y]) {
      for (long long newY = max(0ll, y - 1); newY <= min(largeur - 1, y + 1);
           ++newY)
        nBads -= bloque[1 - x][newY];
      bloque[x][y] = false;
      if ((x == 1 && y == largeur - 1) || (x == 0 && y == 0)) nBads--;
    } else {
      for (long long newY = max(0ll, y - 1); newY <= min(largeur - 1, y + 1);
           ++newY)
        nBads += bloque[1 - x][newY];
      bloque[x][y] = true;
      if ((x == 1 && y == largeur - 1) || (x == 0 && y == 0)) nBads++;
    }
    if (nBads == 0)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
