#include <bits/stdc++.h>
using namespace std;
int n, k, q;
vector<long long> t;
priority_queue<long long, std::vector<long long>, std::greater<long long>> pq;
vector<bool> e;
void Type1(int id) {
  e[id] = true;
  if (pq.size() < k) {
    pq.push(t[id]);
  } else {
    if (t[id] > pq.top()) {
      pq.pop();
      pq.push(t[id]);
    }
  }
}
char* Type2(int id) {
  if (e[id] == false) return "NO";
  if (t[id] < pq.top()) return "NO";
  return "YES";
}
int main(int argc, char* argv[]) {
  cin >> n >> k >> q;
  t.resize(n);
  e.resize(n);
  fill(e.begin(), e.end(), false);
  for (int i = 0; i < n; ++i) {
    cin >> t[i];
  }
  for (int i = 0; i < q; ++i) {
    int type, id;
    cin >> type >> id;
    if (type == 1) {
      Type1(id - 1);
    } else {
      cout << Type2(id - 1) << '\n';
    }
  }
  return 0;
}
