#include <bits/stdc++.h>
using namespace std;
int n, q, onl[2000000], k, t[2000000];
stack<int> s;
struct cmp {
  bool operator()(int a, int b) { return (t[a] < t[b]); }
};
priority_queue<int, vector<int>, cmp> heap;
int main() {
  cin.tie(NULL);
  cout.tie(NULL);
  ios_base::sync_with_stdio(false);
  cin >> n >> k >> q;
  for (int i = 1; i <= n; i++) cin >> t[i];
  for (int i = 1; i <= q; i++) {
    int type;
    cin >> type;
    if (type == 1) {
      int so;
      cin >> so;
      heap.push(so);
      onl[so] = 1;
    } else {
      int so;
      cin >> so;
      if (!onl[so])
        cout << "NO\n";
      else {
        int tmp = k;
        int get = 0;
        while (tmp > 0 and get != so) {
          get = heap.top();
          heap.pop();
          s.push(get);
          tmp--;
        }
        if (get == so)
          cout << "YES\n";
        else
          cout << "NO\n";
        while (s.size()) heap.push(s.top()), s.pop();
      }
    }
  }
}
