#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, q, a[3][100100], i, j, r, c;
  memset(a, 0, sizeof a);
  scanf("%d %d", &n, &q);
  int flag = 0;
  for (j = 0; j < q; j++) {
    scanf("%d %d", &r, &c);
    if (a[r][c] == 0) {
      a[r][c] = 1;
      if (a[2 - r + 1][c] == 1) {
        flag++;
      }
      if (a[2 - r + 1][c + 1] == 1) {
        flag++;
      }
      if (a[2 - r + 1][c - 1] == 1) {
        flag++;
      }
    } else {
      a[r][c] = 0;
      if (a[2 - r + 1][c] == 1) {
        flag--;
      }
      if (a[2 - r + 1][c + 1] == 1) {
        flag--;
      }
      if (a[2 - r + 1][c - 1] == 1) {
        flag--;
      }
    }
    if (flag > 0)
      printf("NO\n");
    else
      printf("YES\n");
  }
}
