#include <bits/stdc++.h>
using namespace std;
bool blocks[4][100005];
int n, q, blocking = 0;
void change(int x, int y) {
  blocks[x][y] = !blocks[x][y];
  if (!blocks[x][y] && blocks[x - 1][y]) blocking--;
  if (!blocks[x][y] && blocks[x + 1][y]) blocking--;
  if (!blocks[x][y] && blocks[x + 1][y + 1]) blocking--;
  if (!blocks[x][y] && blocks[x - 1][y + 1]) blocking--;
  if (!blocks[x][y] && blocks[x + 1][y - 1]) blocking--;
  if (!blocks[x][y] && blocks[x - 1][y - 1]) blocking--;
  if (blocks[x][y] && blocks[x - 1][y]) blocking++;
  if (blocks[x][y] && blocks[x + 1][y]) blocking++;
  if (blocks[x][y] && blocks[x + 1][y + 1]) blocking++;
  if (blocks[x][y] && blocks[x - 1][y + 1]) blocking++;
  if (blocks[x][y] && blocks[x + 1][y - 1]) blocking++;
  if (blocks[x][y] && blocks[x - 1][y - 1]) blocking++;
}
int main() {
  cin >> n >> q;
  int x, y;
  while (q--) {
    cin >> x >> y;
    change(x, y);
    if (blocking == 0)
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
}
