#include <bits/stdc++.h>
using namespace std;
int n, q, a[3][100010];
const int bux[] = {1, -1, 1, -1, 1, -1};
const int buy[] = {0, 0, 1, 1, -1, -1};
int main() {
  scanf("%d%d", &n, &q);
  memset(a, 0, sizeof(a));
  int x, y, k = 0;
  while (q--) {
    scanf("%d%d", &x, &y);
    if (a[x][y] == 1) {
      for (int i = 0; i < 6; i++) {
        int xx = x + bux[i], yy = y + buy[i];
        if (xx >= 1 && xx <= 2 && yy >= 1 && yy <= n)
          if (a[xx][yy] == 1) k--;
      }
      a[x][y] = 0;
    } else {
      for (int i = 0; i < 6; i++) {
        int xx = x + bux[i], yy = y + buy[i];
        if (xx >= 1 && xx <= 2 && yy >= 1 && yy <= n)
          if (a[xx][yy] == 1) k++;
      }
      a[x][y] = 1;
    }
    if (k == 0)
      puts("Yes");
    else
      puts("No");
  }
  return 0;
}
