#include <bits/stdc++.h>
using namespace std;
map<string, int> M;
int main() {
  int N, Q;
  cin >> N >> Q;
  int ans = 1;
  int blocked = 0;
  for (int i = 0; i < Q; i++) {
    int X, Y;
    cin >> X >> Y;
    string pair = "" + to_string(X) + "_" + to_string(Y);
    int fg = 0;
    int fg1 = 0;
    if (M[pair] == 1) {
      M[pair] = 0;
      fg = 1;
    } else {
      fg1 = 1;
      M[pair] = 1;
    }
    if (X == 1) {
      int count = 0;
      int x, y;
      x = 2;
      y = Y;
      string pa = to_string(x) + "_" + to_string(y);
      if (fg1 && M[pa] == 1) {
        ans = 0;
        blocked = blocked + fg1;
      } else if (M[pa] == 1) {
        count = count + fg;
      }
      x = 2;
      y = Y - 1;
      pa = "" + to_string(x) + "_" + to_string(y);
      if (fg1 && y >= 1 && M[pa] == 1) {
        ans = 0;
        blocked = blocked + fg1;
      } else if (y >= 1 && M[pa] == 1) {
        count = count + fg;
      }
      x = 2;
      y = Y + 1;
      pa = "" + to_string(x) + "_" + to_string(y);
      if (fg1 && y <= N && M[pa] == 1) {
        ans = 0;
        blocked = blocked + fg1;
      } else if (y <= N && M[pa] == 1) {
        count = count + fg;
      }
      blocked = blocked - count;
      if (blocked <= 0) {
        ans = 1;
      }
    } else {
      int count = 0;
      int x, y;
      x = 1;
      y = Y;
      string pa = "" + to_string(x) + "_" + to_string(y);
      if (fg1 && M[pa] == 1) {
        ans = 0;
        blocked = blocked + fg1;
      } else if (M[pa] == 1) {
        count = count + fg;
      }
      x = 1;
      y = Y - 1;
      pa = "" + to_string(x) + "_" + to_string(y);
      if (fg1 && y >= 1 && M[pa] == 1) {
        ans = 0;
        blocked = blocked + fg1;
      } else if (y <= N && M[pa] == 1) {
        count = count + fg;
      }
      x = 1;
      y = Y + 1;
      pa = "" + to_string(x) + "_" + to_string(y);
      if (fg1 && y <= N && M[pa] == 1) {
        ans = 0;
        blocked = blocked + fg1;
      } else if (y <= N && M[pa] == 1) {
        count = count + fg;
      }
      blocked = blocked - count;
      if (blocked <= 0) {
        ans = 1;
      }
    }
    if (ans) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
