#include <bits/stdc++.h>
using namespace std;
struct ff {
  int id;
  int score;
  bool operator<(const ff &l) const { return score > l.score; }
};
bool on[150001];
int main() {
  int n, k, q;
  scanf("%d%d%d", &n, &k, &q);
  vector<ff> t(n + 1);
  for (int i = 1; i <= n; i++) {
    t[i].id = i;
    scanf("%d", &t[i].score);
  }
  priority_queue<ff> online;
  memset(on, false, sizeof on);
  for (int i = 0; i < q; i++) {
    int type, p;
    scanf("%d%d", &type, &p);
    if (type == 1) {
      online.push(t[p]);
      on[p] = true;
      if ((int)online.size() > k) {
        ff s = online.top();
        on[s.id] = false;
        online.pop();
      }
    } else {
      if (on[p] == true) {
        printf("YES\n");
      } else {
        printf("NO\n");
      }
    }
  }
  return 0;
}
