#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
int a[3][maxn];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, q;
  cin >> n >> q;
  int cnt = 0;
  for (int i = 1; i <= q; i++) {
    int fa = 1;
    int r, c;
    cin >> r >> c;
    a[r][c] ^= 1;
    if (a[r][c] == 1) {
      if (r == 1) {
        if (a[2][c] == 1) {
          fa = 0;
          cnt++;
        }
        if (a[2][c - 1] == 1) {
          fa = 0;
          cnt++;
        }
        if (a[2][c + 1] == 1) {
          fa = 0;
          cnt++;
        }
      }
      if (r == 2) {
        if (a[1][c] == 1) {
          fa = 0;
          cnt++;
        }
        if (a[1][c - 1] == 1) {
          fa = 0;
          cnt++;
        }
        if (a[1][c + 1] == 1) {
          fa = 0;
          cnt++;
        }
      }
    } else {
      if (r == 1) {
        if (a[2][c] == 1) {
          cnt--;
        }
        if (a[2][c - 1] == 1) {
          cnt--;
        }
        if (a[2][c + 1] == 1) {
          cnt--;
        }
      }
      if (r == 2) {
        if (a[1][c] == 1) {
          cnt--;
        }
        if (a[1][c - 1] == 1) {
          cnt--;
        }
        if (a[1][c + 1] == 1) {
          cnt--;
        }
      }
    }
    if (!fa || cnt) {
      cout << "NO" << endl;
    } else
      cout << "YES" << endl;
  }
  return 0;
}
