#include <bits/stdc++.h>
using std::abs;
using std::array;
using std::cerr;
using std::cin;
using std::cout;
using std::make_pair;
using std::map;
using std::max;
using std::min;
using std::pair;
using std::set;
using std::string;
using std::vector;
template <typename T>
T input() {
  T res;
  cin >> res;
  return res;
}
int main() {
  std::iostream::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  uint32_t n, k, q;
  cin >> n >> k >> q;
  vector<uint32_t> levels(n);
  std::generate(levels.begin(), levels.end(), input<uint32_t>);
  set<uint32_t> cur;
  for (uint32_t i = 0; i != q; ++i) {
    auto t = input<char>();
    uint32_t id = input<uint32_t>() - 1;
    if (t == '2') {
      string res[2] = {"NO\n", "YES\n"};
      cout << res[cur.find(levels[id]) != cur.end()];
    } else {
      cur.insert(levels[id]);
      if (cur.size() > k) cur.erase(cur.begin());
    }
  }
  return 0;
}
