#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000 * 100 + 5;
const long long inf = 9223372036854775807;
int n, q, cnt, mark[3][maxn];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n >> q;
  for (int i = 1; i <= q; i++) {
    int x, y;
    cin >> x >> y;
    if (mark[x][y] == 0) {
      mark[x][y] = 1;
      if (mark[3 - x][y] == 1) cnt++;
      if (mark[3 - x][y - 1] == 1) cnt++;
      if (mark[3 - x][y + 1] == 1) cnt++;
    } else {
      mark[x][y] = 0;
      if (mark[3 - x][y] == 1) cnt--;
      if (mark[3 - x][y - 1] == 1) cnt--;
      if (mark[3 - x][y + 1] == 1) cnt--;
    }
    if (cnt > 0)
      cout << "No";
    else
      cout << "Yes";
    cout << endl;
  }
}
