#include <bits/stdc++.h>
using namespace std;
struct f {
  bool on;
  long long val;
};
struct f1 {
  bool on;
  int ind;
  long long val;
};
f x[150000];
vector<f1> y;
bool comp(f1 s1, f1 s2) { return (s1.val > s2.val); }
int main() {
  int n, k, q;
  cin >> n >> k >> q;
  for (int i = 0; i < n; i++) {
    cin >> x[i].val;
    x[i].on = false;
  }
  long long l, p;
  int num = 0;
  for (int i = 1; i <= q; i++) {
    if (num == k + 1) {
      sort(y.begin(), y.end(), comp);
      x[y[num - 1].ind].on = false;
      y.pop_back();
      num--;
    }
    cin >> l >> p;
    if (l == 1) {
      x[p - 1].on = true;
      f1 s;
      s.ind = p - 1;
      s.on = true;
      s.val = x[p - 1].val;
      y.push_back(s);
      num++;
    } else if (l == 2) {
      if (x[p - 1].on == true)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
}
