#include <bits/stdc++.h>
void err() { std::cout << std::endl; }
template <typename T, typename... Args>
void err(T a, Args... args) {
  std::cout << a << ' ';
  err(args...);
}
using namespace std;
const int mod = 1e9 + 7;
const int maxn = 2e5 + 22;
int a[3][maxn];
int n, q, r, c, s1, s2;
int main() {
  scanf("%d%d", &n, &q);
  bool flag = 1;
  while (q--) {
    scanf("%d%d", &r, &c);
    r--;
    if (a[r][c]) {
      a[r][c] = 0;
      if (a[r ^ 1][c] == 1) s2--;
      if (c - 1 >= 1 && a[r ^ 1][c - 1] == 1) s1--;
      if (c + 1 <= n && a[r ^ 1][c + 1] == 1) s1--;
    } else {
      a[r][c] = 1;
      if (a[r ^ 1][c] == 1) s2++;
      if (c - 1 >= 1 && a[r ^ 1][c - 1] == 1) s1++;
      if (c + 1 <= n && a[r ^ 1][c + 1] == 1) s1++;
    }
    if (!s1 && !s2)
      puts("Yes");
    else
      puts("No");
  }
  return 0;
}
