#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using pii = pair<long long, long long>;
long long status[2][101010];
long long hl[101010], lh[101010], col[101010];
long long hls, lhs, cols;
long long n, q;
void print_status() {
  for (long long i = 1; i <= n; i++) {
    printf("%s", status[0][i] ? "X" : "O");
  }
  printf("\n");
  for (long long i = 1; i <= n; i++) {
    printf("%s", status[1][i] ? "X" : "O");
  }
  printf("\n");
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> q;
  while (q--) {
    long long r, c;
    cin >> r >> c;
    r--;
    if (status[r][c] == 0) {
      if (status[1 - r][c] == 1 && col[c] == 0) {
        col[c] = 1;
        cols++;
      }
      if (r == 1) {
        if (status[0][c - 1] == 1 && hl[c - 1] == 0) {
          hl[c - 1] = 1;
          hls++;
        }
        if (status[0][c + 1] == 1 && lh[c] == 0) {
          lh[c] = 1;
          lhs++;
        }
      } else {
        if (status[1][c + 1] == 1 && hl[c] == 0) {
          hl[c] = 1;
          hls++;
        }
        if (status[1][c - 1] == 1 && lh[c - 1] == 0) {
          lh[c - 1] = 1;
          lhs++;
        }
      }
    } else if (status[r][c] == 1) {
      if (col[c] == 1) {
        col[c] = 0;
        cols--;
      }
      if (r == 1) {
        if (c != 0 && hl[c - 1] == 1) {
          hl[c - 1] = 0;
          hls--;
        }
        if (c != n && lh[c] == 1) {
          lh[c] = 0;
          lhs--;
        }
      } else {
        if (c != n && hl[c] == 1) {
          hl[c] = 0;
          hls--;
        }
        if (c != 0 && lh[c - 1] == 1) {
          lh[c - 1] = 0;
          lhs--;
        }
      }
    }
    status[r][c] = 1 - status[r][c];
    cout << ((lhs == 0 && hls == 0 && cols == 0) ? "Yes\n" : "No\n");
  }
}
