#include <bits/stdc++.h>
using namespace std;
map<int, int> mp;
int arr[150010];
int main() {
  int n, k, q;
  cin >> n >> k >> q;
  for (int i = 1; i <= n; i++) scanf("%d", &arr[i]);
  for (int i = 0; i < q; i++) {
    int a, b;
    scanf("%d %d", &a, &b);
    if (a == 1) {
      mp[arr[b]] = b;
    } else {
      if (mp.count(arr[b]) <= 0)
        printf("NO\n");
      else if (mp.size() <= k)
        printf("YES\n");
      else {
        map<int, int>::iterator it = mp.end();
        for (int j = 0; j < k; j++) it--;
        if (it->first <= arr[b])
          printf("YES\n");
        else
          printf("NO\n");
      }
    }
  }
}
