#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 9;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int c = 0;
  int arr[2][N] = {};
  int n, qq;
  cin >> n >> qq;
  while (qq--) {
    int x, y;
    cin >> x >> y;
    x %= 2;
    if (arr[x][y] != 0) {
      arr[x % 2][y] = 0;
      for (int i = -1; i <= 1; i++) {
        if (y + i >= 0 && arr[(x + 1) % 2][y + i] == 1) {
          c--;
        }
      }
    } else {
      arr[x % 2][y] = 1;
      for (int i = -1; i <= 1; i++) {
        if (y + i >= 0 && arr[(x + 1) % 2][y + i] == 1) {
          c++;
        }
      }
    }
    if (c == 0)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
