#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 1e+2 + 7;
const long long MOD = 1e+9 + 7, INF = 0x7f7f7f7f7f7f7f7f;
const int INFi = 0x7f7f7f7f;
double EPS = 1e-9;
double PI = acos(-1);
long long n, q, a, b, temp, pr = 0;
short int grid[2][100000];
set<long long> r1, r2;
int main() {
  ios::sync_with_stdio(false);
  cout << fixed;
  cout << setprecision(20);
  ;
  cin >> n >> q;
  memset(grid, 0, sizeof(grid));
  ;
  for (long long i = 0; i < q; i += 1) {
    cin >> a >> b;
    a--;
    b--;
    temp = grid[a][b];
    if (grid[!a][b] == temp && temp) {
      pr--;
    }
    if (temp && (b - 1) >= 0 && grid[!a][b - 1] == temp) {
      pr--;
    }
    if (temp && (b + 1) < n && grid[!a][b + 1] == temp) pr--;
    grid[a][b] = (!grid[a][b]);
    temp = (!temp);
    if (grid[!a][b] == temp && temp) {
      pr++;
    }
    if (temp && b - 1 >= 0 && grid[!a][b - 1] == temp) {
      pr++;
    }
    if (b + 1 < n && grid[!a][b + 1] == temp && temp) {
      pr++;
    }
    if (pr)
      cout << "NO";
    else
      cout << "YES";
    cout << "\n";
  }
}
