#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, q;
  cin >> n >> q;
  int a[3][n + 1];
  memset(a, 0, sizeof(a));
  int k = 0, x, y;
  for (int i = 1; i <= q; i++) {
    cin >> x >> y;
    if (a[x][y] == 0) {
      a[x][y] = 1;
      if (x == 1) {
        if (a[2][y + 1] == 1) k++;
        if (a[2][y] == 1) k++;
        if (y != 1 && a[2][y - 1] == 1) k++;
      } else {
        if (a[1][y + 1] == 1) k++;
        if (a[1][y] == 1) k++;
        if (y != 1 && a[1][y - 1] == 1) k++;
      }
    } else {
      a[x][y] = 0;
      if (x == 1) {
        if (a[2][y + 1] == 1) k--;
        if (a[2][y] == 1) k--;
        if (y != 1 && a[2][y - 1] == 1) k--;
      } else {
        if (a[1][y + 1] == 1) k--;
        if (a[1][y] == 1) k--;
        if (y != 1 && a[1][y - 1] == 1) k--;
      }
    }
    if (k == 0)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
