#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 7;
int vis[3][maxn];
int main() {
  for (int i = 1; i <= 1000; ++i)
    ;
  for (int i = 1; i <= 1000; ++i)
    ;
  for (int i = 1; i <= 1000; ++i)
    ;
  for (int i = 1; i <= 1000; ++i)
    ;
  int n, q;
  cin >> n >> q;
  int sum = 0;
  int x, y;
  while (q--) {
    cin >> x >> y;
    if (x == 1) {
      if (vis[x][y] == 1) {
        vis[x][y] = 0;
        if (vis[x + 1][y - 1] == 1) sum--;
        if (vis[x + 1][y + 1] == 1) sum--;
        if (vis[x + 1][y] == 1) sum--;
      } else {
        vis[x][y] = 1;
        if (vis[x + 1][y - 1] == 1) sum++;
        if (vis[x + 1][y + 1] == 1) sum++;
        if (vis[x + 1][y] == 1) sum++;
      }
    } else {
      if (vis[x][y] == 1) {
        vis[x][y] = 0;
        if (vis[x - 1][y - 1] == 1) sum--;
        if (vis[x - 1][y + 1] == 1) sum--;
        if (vis[x - 1][y] == 1) sum--;
      } else {
        vis[x][y] = 1;
        if (vis[x - 1][y - 1] == 1) sum++;
        if (vis[x - 1][y + 1] == 1) sum++;
        if (vis[x - 1][y] == 1) sum++;
      }
    }
    if (!sum)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  for (int i = 1; i <= 1000; ++i)
    ;
  for (int i = 1; i <= 1000; ++i)
    ;
  for (int i = 1; i <= 1000; ++i)
    ;
  for (int i = 1; i <= 1000; ++i)
    ;
  return 0;
}
