#include <bits/stdc++.h>
using namespace std;
int n, k, q;
vector<int> a;
vector<pair<int, int> > v;
int main() {
  cin >> n >> k >> q;
  a.resize(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  for (int i = 0; i < q; ++i) {
    int t, x;
    cin >> t >> x;
    --x;
    if (t == 1) {
      v.push_back(make_pair(a[x], x));
      sort(v.rbegin(), v.rend());
      if (v.size() > k) v.pop_back();
    } else {
      bool t = false;
      for (int i = 0; i < v.size(); ++i)
        if (v[i].second == x) t = true;
      if (t)
        cout << "YES\n";
      else
        cout << "NO\n";
    }
  }
  return 0;
}
