#include <bits/stdc++.h>
using namespace std;
int id[151000];
int k;
vector<int> online;
void insert(int index) {
  for (int i = 0; i < k; i++) {
    if (online[i] < id[index]) {
      online.insert(online.begin() + i, id[index]);
      online.resize(k);
      break;
    }
  }
}
void print(int index) {
  for (int i = 0; i < k; i++) {
    if (online[i] == id[index]) {
      cout << "YES" << endl;
      return;
    }
  }
  cout << "NO" << endl;
}
int main() {
  int n, q;
  cin >> n >> k >> q;
  online = vector<int>(k);
  for (int i = 0; i < n; i++) {
    cin >> id[i];
  }
  int type, ids;
  for (int i = 0; i < q; i++) {
    cin >> type >> ids;
    if (type == 1)
      insert(ids - 1);
    else
      print(ids - 1);
  }
}
