#include <bits/stdc++.h>
using namespace std;
int arr[200000];
int main() {
  set<pair<int, int> > s;
  cin.sync_with_stdio(0);
  cin.tie(0);
  int n, k, q;
  cin >> n >> k >> q;
  for (int i = 0; i < n; i++) cin >> arr[i];
  while (q--) {
    int t, i;
    cin >> t >> i;
    if (t == 1) {
      s.insert(make_pair(-arr[i - 1], i));
    } else {
      int j = 0;
      int ok = 0;
      for (set<pair<int, int> >::iterator it = s.begin();
           it != s.end() && j < k; ++it, j++) {
        if (it->second == i) ok = 1;
      }
      cout << (ok ? "YES" : "NO") << endl;
    }
  }
  return 0;
}
