#include <bits/stdc++.h>
using namespace std;
int n, k, nrq, typeq, idq;
int v[150005];
bool on[150005];
set<int> s;
int main() {
  scanf("%d %d %d", &n, &k, &nrq);
  for (int i = 1; i <= n; ++i) scanf("%d", &v[i]);
  while (nrq--) {
    scanf("%d %d", &typeq, &idq);
    if (typeq == 1) {
      on[idq] = 1;
      s.insert(v[idq]);
      while ((int)s.size() > k) s.erase(s.begin());
    } else
      printf("%s\n",
             (on[idq] && !s.empty() && (*s.begin() <= v[idq])) ? "YES" : "NO");
  }
  return 0;
}
