#include <bits/stdc++.h>
using namespace std;
int i, j, k;
int main() {
  int n;
  cin >> n;
  ;
  int q;
  cin >> q;
  ;
  int a[3][n + 1];
  int f = 0;
  for (int i = (0); i < (3); i++)
    for (int j = (0); j < (n + 1); j++) a[i][j] = 1;
  for (i = 0; i < q; i++) {
    int x;
    cin >> x;
    ;
    int y;
    cin >> y;
    ;
    a[x][y] ^= 1;
    if (x == 1) {
      if (a[x][y] == 0 and a[x + 1][y] == 0) f++;
      if (a[x][y] == 1 and a[x + 1][y] == 0) f--;
      if (a[x][y] == 0 and a[x + 1][y + 1] == 0 and y + 1 <= n) f++;
      if (a[x][y] == 0 and a[x + 1][y - 1] == 0 and y - 1 >= 1) f++;
      if (a[x][y] == 1 and a[x + 1][y + 1] == 0 and y + 1 <= n) f--;
      if (a[x][y] == 1 and a[x + 1][y - 1] == 0 and y - 1 >= 1) f--;
    } else {
      if (a[x][y] == 0 and a[x - 1][y] == 0) f++;
      if (a[x][y] == 1 and a[x - 1][y] == 0) f--;
      if (a[x][y] == 0 and a[x - 1][y + 1] == 0 and y + 1 <= n) f++;
      if (a[x][y] == 0 and a[x - 1][y - 1] == 0 and y - 1 >= 1) f++;
      if (a[x][y] == 1 and a[x - 1][y + 1] == 0 and y + 1 <= n) f--;
      if (a[x][y] == 1 and a[x - 1][y - 1] == 0 and y - 1 >= 1) f--;
    }
    f > 0 ? cout << "NO\n" : cout << "YES\n";
  }
}
