#include <bits/stdc++.h>
using namespace std;
set<pair<int, int> > inwind;
vector<int> fre(150001, 0);
int main() {
  cin.tie(NULL);
  ios_base ::sync_with_stdio(false);
  int n, q, k, t, v;
  cin >> n >> k >> q;
  for (int i = 0; i < n; ++i) {
    cin >> fre[i + 1];
    fre[i + 1] = -fre[i + 1];
  }
  for (int i = 0; i < q; ++i) {
    cin >> t >> v;
    if (t == 1) {
      inwind.insert(make_pair(fre[v], v));
      if ((int)inwind.size() > k) {
        set<pair<int, int> >::iterator s = inwind.end();
        --s;
        inwind.erase(s);
      }
    } else if (inwind.find(make_pair(fre[v], v)) != inwind.end())
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
