#include <bits/stdc++.h>
using namespace std;
multimap<long long, int, greater<long long>> f;
int main() {
  long long N, Q, temp;
  int K;
  long long listf[150100];
  cin >> N >> K >> Q;
  for (int i = 1; i <= N; i++) {
    cin >> listf[i];
  }
  int O, ID;
  for (int i = 0; i < Q; i++) {
    scanf("%d %d", &O, &ID);
    if (O == 1) {
      f.insert({listf[ID], ID});
    } else {
      bool found = false;
      map<long long, int>::iterator it = f.begin();
      for (int j = 0; j < K && it != f.end(); j++) {
        found = (it->second == ID);
        if (found) break;
        it++;
      }
      if (found)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
  return 0;
}
