#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline int Chkmax(T &a, T b) {
  return a < b ? a = b, 1 : 0;
}
template <typename T>
inline int Chkmin(T &a, T b) {
  return a > b ? a = b, 1 : 0;
}
template <typename T>
inline T read() {
  T sum = 0;
  int fl = 1, ch = getchar();
  for (; !isdigit(ch); ch = getchar())
    if (ch == '-') fl = -1;
  for (; isdigit(ch); ch = getchar()) sum = (sum << 3) + (sum << 1) + ch - '0';
  return sum * fl;
}
const int maxn = 1e5 + 5;
int n, q;
int a[3][maxn], cnt;
inline void Solve() {
  for (int i = 1; i <= q; i++) {
    int x, y;
    x = read<int>();
    y = read<int>();
    a[x][y] ^= 1;
    if (!a[x][y]) {
      cnt -= a[3 - x][y - 1] + a[3 - x][y] + a[3 - x][y + 1];
    } else {
      cnt += a[3 - x][y - 1] + a[3 - x][y] + a[3 - x][y + 1];
    }
    if (cnt) {
      printf("No\n");
    } else
      printf("Yes\n");
  }
}
inline void Input() {
  n = read<int>();
  q = read<int>();
}
int main() {
  Input();
  Solve();
  return 0;
}
