#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n, k, q, ind;
  cin >> n >> k >> q;
  set<int> s;
  vector<int> arr(n);
  vector<string> ans;
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < q; i++) {
    cin >> ind;
    if (ind == 1) {
      cin >> ind;
      s.insert(arr[ind - 1]);
    } else {
      int o = 0;
      cin >> ind;
      ind = arr[ind - 1];
      for (auto it = s.end(); it != s.begin(); it--) {
        if (it != s.end()) {
          o++;
          if (ind == *it) {
            ans.push_back("YES");
            o = -1;
            break;
          }
          if (o == k) break;
        }
      }
      if (s.size() <= k) {
        auto it = s.begin();
        if (ind == *it) {
          ans.push_back("YES");
          o = -1;
        }
      }
      if (o != -1) ans.push_back("NO");
    }
  }
  for (int i = 0; i < ans.size(); i++) cout << ans[i] << endl;
  return 0;
}
