#include <bits/stdc++.h>
using namespace std;
int t[1000001];
map<int, int> mp;
int ke[10], d[10];
int main() {
  int n, k, q, pos, x;
  cin >> n >> k >> q;
  for (long long int i = 0; i < n; ++i) {
    cin >> t[i];
    mp[t[i]] = i;
  }
  int mi;
  for (long long int i = 0; i < q; ++i) {
    int ty, id;
    cin >> ty >> id;
    id--;
    if (ty == 1) {
      int bo = 0;
      for (long long int i = 0; i < k; ++i) {
        if (ke[i] == 0) {
          ke[i] = t[id];
          goto hell;
        }
      }
      for (long long int i = 0; i < k; ++i) {
        if (ke[i] < t[id]) bo = 1;
      }
      if (bo == 0) {
        goto hell;
      }
      x = ke[0];
      pos = 0;
      for (long long int i = 0; i < k; ++i) {
        if (x > ke[i]) {
          pos = i;
          x = ke[i];
        }
      }
      ke[pos] = t[id];
    hell:;
    }
    if (ty == 2) {
      int bo = 0;
      for (long long int i = 0; i < k; ++i) {
        if (t[id] == ke[i]) bo = 1;
      }
      if (bo == 0) {
        cout << "NO" << endl;
      } else
        cout << "YES" << endl;
    }
  }
}
