#include <bits/stdc++.h>
using namespace std;
class segtree {
 private:
  struct node {
    int suff_max = -1;
    int pref_min = 1e9;
    int min_diff = pref_min - suff_max;
    void assign(int v, bool flag) {
      if (flag) {
        suff_max = v;
      } else {
        pref_min = v;
      }
      min_diff = pref_min - suff_max;
    }
    void merge(node a, node b) {
      suff_max = max(a.suff_max, b.suff_max);
      pref_min = min(a.pref_min, b.pref_min);
      min_diff = min({a.pref_min - b.suff_max, a.min_diff, b.min_diff});
    }
  };
  const int n;
  int b;
  node* tree;

 public:
  segtree(int _n) : n(_n) {
    assert(_n > 0);
    for (b = 1; b < n; b <<= 1)
      ;
    tree = new node[b << 1];
  }
  template <typename... M>
  void update(int ind, const M&... v) {
    tree[b + ind].assign(v...);
    for (int i = (b + ind) / 2; i > 0; i >>= 1) {
      tree[i].merge(tree[i * 2], tree[i * 2 + 1]);
    }
  }
  bool query() { return tree[1].min_diff > 0; }
};
void foo() {
  int n, m, q;
  cin >> n >> m >> q;
  vector<set<int>> down(m), up(m);
  set<pair<int, int>> s;
  segtree st(m);
  for (int i = 0; i < q; i++) {
    int x, y;
    cin >> x >> y;
    x--;
    y--;
    assert((x + y) % 2 == 0);
    x ^= 1;
    y ^= 1;
    int row = x / 2;
    int col = y / 2;
    if (s.find({x, y}) != s.end()) {
      if (x % 2 == 1) {
        up[col].erase(row);
        int curr = up[col].empty() ? 1e9 : *up[col].begin();
        st.update(col, curr, false);
      } else {
        down[col].erase(row);
        int curr = down[col].empty() ? -1 : *down[col].rbegin();
        st.update(col, curr, true);
      }
      s.erase({x, y});
    } else {
      if (x % 2 == 1) {
        up[col].insert(row);
        int curr = *up[col].begin();
        st.update(col, curr, false);
      } else {
        down[col].insert(row);
        int curr = *down[col].rbegin();
        st.update(col, curr, true);
      }
      s.insert({x, y});
    }
    if (st.query()) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  foo();
}
