#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int> > v;
bool act[1000006];
int arr[1000006];
int main() {
  int n, q, k;
  scanf("%d", &n);
  scanf("%d", &k);
  scanf("%d", &q);
  for (int i = 1; i <= (n); i++) scanf("%d", &arr[i]);
  for (int x = 1; x <= (q); x++) {
    int m1, a1;
    scanf("%d", &m1);
    scanf("%d", &a1);
    if (m1 == 1) {
      act[a1] = true;
      v.push_back(make_pair(arr[a1], a1));
      if (v.size() > k) {
        sort(v.begin(), v.end(), greater<pair<int, int> >());
        act[v[v.size() - 1].second] = false;
        v.pop_back();
      }
    } else {
      if (act[a1])
        cout << "YES";
      else
        cout << "NO";
      printf("\n");
    }
  }
  return 0;
}
