#include <bits/stdc++.h>
using namespace std;
set<int, greater<int> > s;
int a[150000];
int main() {
  int n, k, q;
  int t, id, c = 0;
  bool flag = false;
  cin >> n >> k >> q;
  for (int i = 0; i < n; ++i) cin >> a[i];
  for (int i = 0; i < q; ++i) {
    cin >> t >> id;
    if (t == 1) s.insert(a[id - 1]);
    if (t == 2) {
      c = 0;
      flag = false;
      for (set<int>::iterator it = s.begin(); it != s.end() && c < k; ++it) {
        if (a[id - 1] == *it) {
          flag = true;
          break;
        }
        c++;
      }
      if (flag)
        cout << "YES\n";
      else
        cout << "NO\n";
    }
  }
  return 0;
}
