#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, q, t, x, num;
  bool f;
  cin >> n >> k >> q;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  set<int> w;
  for (int i = 0; i < q; i++) {
    cin >> t >> x;
    if (t == 1) w.insert(a[x - 1]);
    if (t == 2) {
      num = 0;
      f = false;
      for (set<int>::reverse_iterator j = w.rbegin(); j != w.rend(); j++) {
        num++;
        if (num > k) {
          break;
        }
        if (*j == a[x - 1]) {
          if (num <= k) f = true;
          break;
        }
      }
      if (f)
        cout << "YES\n";
      else
        cout << "NO\n";
    }
  }
}
