#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, q, t, i;
  cin >> n >> k >> q;
  vector<int> P(n);
  for (int& x : P) cin >> x;
  for (set<int> S; cin >> t >> i;)
    if (t < 2)
      for (S.insert(P[i - 1]); S.size() > k; S.erase(*S.begin()))
        ;
    else
      cout << (S.count(P[i - 1]) ? "YES\n" : "NO\n");
}
