#include <bits/stdc++.h>
using namespace std;
int n, k, q;
int t[150000 + 1];
set<int> online;
void friendOnline(int id) { online.insert(t[id]); }
void checkFriendDisplayed(int ID) {
  int val = t[ID];
  if (online.count(val) > 0) {
    if (online.size() <= k) {
      cout << "YES\n";
      return;
    } else {
      auto it = online.lower_bound(val);
      int c = 0;
      while (c++ < k) {
        it++;
        if (it == online.end()) {
          cout << "YES\n";
          return;
        }
      }
    }
  }
  cout << "NO\n";
}
int main() {
  cin >> n >> k >> q;
  for (int i = 1; i <= n; i++) {
    cin >> t[i];
  }
  for (int i = 0; i < q; i++) {
    int type, id;
    cin >> type >> id;
    if (type == 1)
      friendOnline(id);
    else
      checkFriendDisplayed(id);
  }
}
