#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, t, ok, i, j, n, k, u, p, q, a[150001], b[6], c[6];
  for (i = 0; i < 6; i++) {
    b[i] = 0;
    c[i] = 0;
  }
  cin >> n >> k >> q;
  if (k > 6) k = 6;
  for (i = 1; i <= n; i++) cin >> a[i];
  for (i = 0; i < q; i++) {
    cin >> t >> j;
    if (t == 1) {
      m = b[0];
      p = 0;
      for (u = 1; u < k; u++)
        if (b[u] < m) {
          m = b[u];
          p = u;
        }
      if (b[p] < a[j]) {
        b[p] = a[j];
        c[p] = j;
      }
    }
    if (t == 2) {
      ok = 0;
      for (u = 0; u < k; u++)
        if (c[u] == j) {
          ok = 1;
          break;
        }
      if (ok)
        cout << "YES";
      else
        cout << "NO";
      cout << endl;
    }
  }
  return 0;
}
