#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, q, t, id;
  bool *inq;
  int *a;
  priority_queue<pair<int, int> > pq;
  scanf("%d %d %d", &n, &k, &q);
  inq = new bool[n]();
  a = new int[n]();
  for (auto i = 0; i < n; i++) {
    scanf("%d", a + i);
    inq[i] = false;
  }
  for (auto i = 0; i < q; i++) {
    scanf("%d %d", &t, &id);
    id--;
    if (t == 1) {
      pq.push(pair<int, int>(-a[id], id));
      inq[id] = true;
      while (pq.size() > k) {
        inq[pq.top().second] = false;
        pq.pop();
      }
    } else {
      if (inq[id])
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
  return 0;
}
