#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const int N = 2e5 + 7;
void my_dbg() { cout << endl; }
template <typename Arg, typename... Args>
void my_dbg(Arg A, Args... B) {
  cout << ' ' << A;
  my_dbg(B...);
}
int main() {
  int n, q;
  scanf("%d", &n), scanf("%d", &q);
  int a[2][n + 2], b = 0;
  for (int i = 0; i < (int)n + 2; i++) a[0][i] = a[1][i] = 0;
  for (int i = 0; i < (int)q; i++) {
    int r, c;
    scanf("%d", &r), scanf("%d", &c);
    r--;
    if (a[r][c]) {
      b -= (a[1 - r][c - 1] + a[1 - r][c] + a[1 - r][c + 1]);
      a[r][c] = 0;
    } else {
      b += a[1 - r][c - 1] + a[1 - r][c] + a[1 - r][c + 1];
      a[r][c] = 1;
    }
    if (b)
      printf("NO\n");
    else
      printf("YES\n");
  }
}
