#include <bits/stdc++.h>
using namespace std;
int t[150005];
bitset<150005> online(0);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, q, k, cnt = 0;
  priority_queue<pair<int, int>, vector<pair<int, int> >,
                 greater<pair<int, int> > >
      pq;
  scanf("%d %d %d", &n, &k, &q);
  for (int i = 1; i <= n; i++) scanf("%d", &t[i]);
  while (q--) {
    int type, id;
    scanf("%d %d", &type, &id);
    if (type == 1) {
      pq.push(make_pair(t[id], id));
      online[id] = true;
      cnt++;
      if (cnt > k) {
        pair<int, int> kick = pq.top();
        pq.pop();
        online[kick.second] = false;
        cnt--;
      }
    } else {
      puts(online[id] ? "YES" : "NO");
    }
  }
  return 0;
}
