#include <bits/stdc++.h>
using namespace std;
const int INF = INT_MAX;
const long long mod = 1e9 + 7;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  int n, k, q;
  cin >> n >> k >> q;
  vector<int> a(n), f(n, 0);
  for (int i = 0; i < n; i++) cin >> a[i];
  set<pair<int, int> > w;
  for (int i = 0; i < q; i++) {
    int t, x;
    cin >> t >> x;
    x--;
    if (t == 1) {
      if (w.size() + 1 <= k) {
        w.insert({a[x], x});
        f[x] = 1;
      } else {
        pair<int, int> y = (*w.begin());
        if (a[x] > y.first)
          f[y.second] = 0, f[x] = 1, w.erase(y), w.insert({a[x], x});
      }
    } else if (w.find({a[x], x}) != w.end())
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
