#include <bits/stdc++.h>
using namespace std;
const int N = 100010;
int f[3][N];
int ans;
void solve(int x, int y) {
  int res = f[x][y] ? -1 : 1;
  ans += res * (f[3 - x][y] + f[3 - x][y + 1] + f[3 - x][y - 1]);
  f[x][y] ^= 1;
}
int main() {
  int n, q;
  cin >> n >> q;
  while (q--) {
    int x, y;
    cin >> x >> y;
    solve(x, y);
    cout << (ans ? "NO" : "YES") << endl;
  }
}
