#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:100000000")
#pragma GCC ostarimize("O500")
using namespace std;
const bool db = false;
set<pair<int, int>> s;
int a[200100];
int main() {
  int n, k, q;
  scanf("%d %d %d\n", &n, &k, &q);
  for (int i = 1; i <= n; i++) scanf("%d ", &a[i]);
  scanf("\n");
  int type, num;
  set<pair<int, int>>::iterator it;
  while (q--) {
    scanf("%d %d\n", &type, &num);
    if (type == 1) {
      s.insert({-a[num], num});
      if (s.size() > k) {
        it = s.end();
        it--;
        s.erase(it);
      }
    } else {
      if (s.count({-a[num], num}))
        puts("YES");
      else
        puts("NO");
    }
  }
  return 0;
}
