#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, q;
  cin >> n >> q;
  vector<vector<int>> d(3, vector<int>(n + 2, -1));
  int ans = 0;
  for (int i = 0; i < q; ++i) {
    int y, x;
    cin >> y >> x;
    if (d[y][x] == -1) {
      d[y][x] = 0;
      if (y == 1) {
        for (int j = -1; j <= 1; ++j)
          if (d[2][x - j] != -1) {
            d[2][x - j]++;
            d[y][x]++;
            ans += 2;
          }
      }
      if (y == 2) {
        for (int j = -1; j <= 1; ++j)
          if (d[1][x - j] != -1) {
            d[1][x - j]++;
            d[y][x]++;
            ans += 2;
          }
      }
    } else {
      ans -= d[y][x];
      d[y][x] = -1;
      if (y == 1) {
        for (int j = -1; j <= 1; ++j)
          if (d[2][x - j] != -1) {
            d[2][x - j]--;
            ans--;
          }
      }
      if (y == 2) {
        for (int j = -1; j <= 1; ++j)
          if (d[1][x - j] != -1) {
            d[1][x - j]--;
            ans--;
          }
      }
    }
    if (ans == 0)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
