#include <bits/stdc++.h>
using namespace std;
bool a[2][100010];
int n, q, nr, x, y;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> q;
  for (int i = 1; i <= q; i++) {
    cin >> x >> y;
    x--;
    if (a[x][y])
      nr -= a[(x + 1) % 2][y - 1] + a[(x + 1) % 2][y] + a[(x + 1) % 2][y + 1],
          a[x][y] = 0;
    else
      nr += a[(x + 1) % 2][y - 1] + a[(x + 1) % 2][y] + a[(x + 1) % 2][y + 1],
          a[x][y] = 1;
    if (!nr)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
