#include <bits/stdc++.h>
using namespace std;
const int N = (1e6 + 5);
set<int> Set;
bool ok;
set<int>::iterator it;
int cer, i, n, a[N], k, q, pas, id;
int main() {
  scanf("%d%d%d", &n, &k, &q);
  for (i = 1; i <= n; ++i) scanf("%d", &a[i]);
  while (q--) {
    scanf("%d%d", &cer, &id);
    if (cer == 1) {
      Set.insert(-a[id]);
    } else {
      ok = 0;
      for (it = Set.begin(), pas = 1; !ok && it != Set.end() && pas <= k;
           ++pas, ++it)
        if (*it == -a[id]) {
          printf("YES\n");
          ok = 1;
        }
      if (!ok) printf("NO\n");
    }
  }
  return 0;
}
