#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n;
  cin >> n;
  long long q;
  cin >> q;
  map<long long, long long> m1, m2;
  long long problem = 0;
  while (q--) {
    long long r, c;
    cin >> r >> c;
    if (r == 1) {
      if (m1[c] == 1) {
        m1[c] = 0;
        if (m2[c - 1] == 1) {
          problem--;
        }
        if (m2[c + 1] == 1) {
          problem--;
        }
        if (m2[c] == 1) problem--;
      } else {
        m1[c] = 1;
        if (m2[c - 1] == 1) problem++;
        if (m2[c + 1] == 1) problem++;
        if (m2[c] == 1) problem++;
      }
    } else {
      if (m2[c] == 1) {
        m2[c] = 0;
        if (m1[c - 1] == 1) {
          problem--;
        }
        if (m1[c + 1] == 1) {
          problem--;
        }
        if (m1[c] == 1) problem--;
      } else {
        m2[c] = 1;
        if (m1[c - 1] == 1) problem++;
        if (m1[c + 1] == 1) problem++;
        if (m1[c] == 1) problem++;
      }
    }
    if (problem > 0)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
}
