#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
using namespace std;
const long long MAXN = 1e+2 + 7;
const long long MOD = 1e+9 + 7, INF = 0x7f7f7f7f7f7f7f7f;
const int INFi = 0x7f7f7f7f;
double EPS = 1e-9;
double PI = acos(-1);
vector<long long> adj[MAXN];
long long visit[MAXN] = {};
int dx8[] = {0, 1, 1, 1, 0, -1, -1, -1}, dy8[] = {1, 1, 0, -1, -1, -1, 0, 1},
    dx4[] = {0, 1, 0, -1}, dy4[] = {1, 0, -1, 0};
long long t, n;
long long i, j;
long long a[3][100007], q, b, c;
set<pair<pair<long long, long long>, pair<long long, long long>>> set1;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed;
  cout << setprecision(10);
  ;
  cin >> n >> q;
  for (i = 1; i <= 2; i++) {
    for (j = 1; j <= n; j++) a[i][j] = 0;
  }
  while (q--) {
    cin >> b >> c;
    if (a[b][c] == 0)
      a[b][c] = 1;
    else
      a[b][c] = 0;
    if (a[b][c] == 1) {
      if (b == 1) {
        if (a[2][c] == 1) set1.insert({{1, c}, {2, c}});
        if (a[2][c + 1] == 1 && c + 1 != n + 1)
          set1.insert({{1, c}, {2, c + 1}});
        if (a[2][c - 1] == 1 && c - 1 != 0) set1.insert({{1, c}, {2, c - 1}});
      }
      if (b == 2) {
        if (a[1][c] == 1) set1.insert({{1, c}, {2, c}});
        if (a[1][c + 1] == 1 && c + 1 != n + 1)
          set1.insert({{2, c}, {1, c + 1}});
        if (a[1][c - 1] == 1 && c - 1 != n - 1)
          set1.insert({{2, c}, {1, c - 1}});
      }
    }
    if (a[b][c] == 0) {
      if (b == 1) {
        set1.erase({{1, c}, {2, c}});
        set1.erase({{2, c}, {1, c}});
        set1.erase({{1, c}, {2, c + 1}});
        set1.erase({{2, c + 1}, {1, c}});
        set1.erase({{1, c}, {2, c - 1}});
        set1.erase({{2, c - 1}, {1, c}});
      }
      if (b == 2) {
        set1.erase({{2, c}, {1, c}});
        set1.erase({{1, c}, {2, c}});
        set1.erase({{2, c}, {1, c + 1}});
        set1.erase({{1, c + 1}, {2, c}});
        set1.erase({{2, c}, {1, c - 1}});
        set1.erase({{1, c - 1}, {2, c}});
      }
    }
    if (set1.empty())
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
