#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, t;
  long long x, y;
  cin >> n;
  cin >> t;
  vector<vector<int> > v(2, vector<int>(n + 2, 0));
  int cnt = 0;
  while (t--) {
    cin >> x >> y;
    if (x == 1) {
      if (v[0][y] == 0) {
        if (v[1][y + 1] != 0) {
          cnt++;
        }
        if (v[1][y - 1] != 0) {
          cnt++;
        }
        if (v[1][y] != 0) {
          cnt++;
        }
        v[0][y] = 1;
        if (cnt > 0) {
          cout << "NO" << endl;
          continue;
        }
        cout << "YES" << endl;
        continue;
      } else {
        if (v[1][y + 1] != 0) {
          cnt--;
        }
        if (v[1][y - 1] != 0) {
          cnt--;
        }
        if (v[1][y] != 0) {
          cnt--;
        }
        v[0][y] = 0;
        if (cnt > 0) {
          cout << "NO" << endl;
          continue;
        }
        cout << "YES" << endl;
        continue;
      }
    }
    if (x == 2) {
      if (v[1][y] == 0) {
        if (v[0][y + 1] != 0) {
          cnt++;
        }
        if (v[0][y - 1] != 0) {
          cnt++;
        }
        if (v[0][y] != 0) {
          cnt++;
        }
        v[1][y] = 1;
        if (cnt > 0) {
          cout << "NO" << endl;
          continue;
        }
        cout << "YES" << endl;
        continue;
      } else {
        if (v[0][y + 1] != 0) {
          cnt--;
        }
        if (v[0][y - 1] != 0) {
          cnt--;
        }
        if (v[0][y] != 0) {
          cnt--;
        }
        v[1][y] = 0;
        if (cnt > 0) {
          cout << "NO" << endl;
          continue;
        }
        cout << "YES" << endl;
        continue;
      }
    }
  }
}
