#include <bits/stdc++.h>
using namespace std;
int N, K, Q, T[150001];
set<pair<int, int> > S;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> N >> K >> Q;
  for (int i = 1; i <= (N); ++i) cin >> T[i];
  for (int q = 1; q <= (Q); ++q) {
    int type, id;
    cin >> type >> id;
    if (type == 1) {
      S.emplace(-T[id], id);
    } else {
      int i = 0;
      bool found = false;
      for (auto p : S) {
        if (i >= K) break;
        if (p.second == id) {
          found = true;
          break;
        }
        ++i;
      }
      if (found)
        cout << "YES\n";
      else
        cout << "NO\n";
    }
  }
  return 0;
}
