#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int64_t n, k, q;
  cin >> n >> k >> q;
  set<int64_t> s;
  int64_t a[n];
  for (auto& x : a) cin >> x;
  while (q--) {
    int64_t id, num;
    cin >> id >> num;
    if (id == 1) {
      s.insert(a[num - 1]);
      if (s.size() > k) {
        while (s.size() != k) s.erase(s.begin());
      }
    } else {
      if (s.count(a[num - 1]))
        cout << "YES\n";
      else
        cout << "NO\n";
    }
  }
}
