#include <bits/stdc++.h>
using namespace std;
int cmax(int &a, int b) { return a < b ? a = b, 1 : 0; }
int cmin(int &a, int b) { return a > b ? a = b, 1 : 0; }
char IO;
template <class T = int>
T rd() {
  T s = 0;
  int f = 0;
  while (!isdigit(IO = getchar())) f |= IO == '-';
  do s = (s << 1) + (s << 3) + (IO ^ '0');
  while (isdigit(IO = getchar()));
  return f ? -s : s;
}
const int N = 2e5 + 10, P = 998244353;
int n, m, k, q;
int X[N], Y[N];
int main() {
  memset(X, 10, sizeof X);
  n = rd(), m = rd(), k = max(n, m), q = rd();
  int f = 1;
  while (q--) {
    int x = rd(), y = rd(), t = x & 1;
    x = (x + 1) / 2, y = (y + 1) / 2;
    if (t) {
      for (int i = x; i <= k; i += i & -i) f &= Y[i] < y;
      for (int i = x; i <= k; i += i & -i) cmin(X[i], y);
    } else {
      for (int i = x; i; i -= i & -i) f &= X[i] > y;
      for (int i = x; i; i -= i & -i) cmax(Y[i], y);
    }
    puts(f ? "YES" : "NO");
  }
}
