#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n, k, q;
  cin >> n >> k >> q;
  vector<long long> a(n);
  for (long long i = 0; i < n; ++i) cin >> a[i];
  set<long long> ms;
  vector<bool> used(n);
  for (long long t = 0; t < q; ++t) {
    long long tp, i;
    cin >> tp >> i;
    --i;
    if (tp == 1) {
      ms.insert(a[i]);
      used[i] = 1;
    } else {
      auto it = ms.end();
      for (long long j = 0; j < k && it != ms.begin(); ++j) {
        --it;
      }
      if (*it <= a[i] && used[i])
        cout << "YES" << '\n';
      else
        cout << "NO" << '\n';
    }
  }
}
