#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, q;
  cin >> n >> k >> q;
  int* t = new int[n];
  for (int i = 0; i < n; i++) {
    cin >> t[i];
  }
  bool* displayed = new bool[n];
  for (int i = 0; i < n; i++) {
    displayed[i] = false;
  }
  int displayedNumber = 0;
  int* displayedIndex = new int[k];
  for (int i = 0; i < k; i++) {
    displayedIndex[i] = -1;
  }
  for (int i = 0; i < q; i++) {
    int type, index;
    cin >> type >> index;
    if (type == 1) {
      if (displayedNumber < k) {
        displayed[index - 1] = true;
        displayedIndex[displayedNumber] = index - 1;
        displayedNumber++;
      } else {
        int mint = t[displayedIndex[0]];
        int indext = 0;
        for (int j = 1; j < k; j++) {
          if (mint > t[displayedIndex[j]]) {
            mint = t[displayedIndex[j]];
            indext = j;
          }
        }
        if (mint < t[index - 1]) {
          displayed[index - 1] = true;
          displayed[displayedIndex[indext]] = false;
          displayedIndex[indext] = index - 1;
        }
      }
    } else {
      if (displayed[index - 1])
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
  return 0;
}
