#include <bits/stdc++.h>
using namespace std;
const int N = 150000 + 5;
int buffer[7], t[N];
int cnt;
int n, k, q;
bool cmp(int i, int j) { return t[i] < t[j]; }
int main() {
  cin >> n >> k >> q;
  for (int i = 1; i <= n; i++) {
    scanf("%d", t + i);
  }
  while (q--) {
    int type, id;
    scanf("%d%d", &type, &id);
    sort(buffer, buffer + cnt, cmp);
    if (type == 1) {
      if (cnt >= k) {
        if (t[buffer[0]] < t[id]) {
          buffer[0] = id;
        }
      } else {
        buffer[cnt++] = id;
      }
    }
    if (type == 2) {
      int *ptr = find(buffer, buffer + cnt, id);
      if (ptr == buffer + cnt) {
        printf("NO\n");
      } else {
        printf("YES\n");
      }
    }
  }
  return 0;
}
