#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const int INF = 1034567890;
const long long LL_INF = 1234567890123456789ll;
const double PI = acos(-1);
const long double ERR = 1E-10;
int main() {
  int n, q;
  cin >> n >> q;
  set<pair<int, int>> cells;
  int bad_nei{};
  for (auto i{0}; i < q; i++) {
    int row, col;
    cin >> row >> col;
    bool was_forbidden = cells.count({row, col});
    for (auto r{row - 1}; r < row + 2; r++) {
      for (auto c{col - 1}; c < col + 2; c++) {
        if (r == row) continue;
        if (!(1 <= r && r <= 2 && 1 <= c && c <= n)) {
          continue;
        }
        if (cells.count({r, c})) {
          if (was_forbidden)
            bad_nei--;
          else
            bad_nei++;
        }
      }
    }
    if (cells.count({row, col}))
      cells.erase({row, col});
    else
      cells.insert({row, col});
    if (bad_nei >= 1)
      puts("NO");
    else
      puts("YES");
  }
  return 0;
}
