#include <bits/stdc++.h>
using namespace std;
int const mod = 0;
bool cmp(int a, int b) { return a > b; }
int main() {
  vector<int> store;
  int n, q, k;
  cin >> n >> k >> q;
  int a[150022];
  for (int i = 0; i < n; i++) cin >> a[i];
  int onl = 0;
  int mn = (1 << 22), mx = 0;
  int up = k;
  while (q) {
    q--;
    int s, h;
    cin >> s >> h;
    if (s == 1) {
      if (onl < up) {
        store.push_back(a[h - 1]);
        onl++;
      } else {
        sort(store.begin(), store.end(), cmp);
        if (a[h - 1] > store[up - 1]) {
          store.pop_back();
          store.push_back(a[h - 1]);
        }
      }
    }
    if (s == 2) {
      bool joj = true;
      int gog = store.size();
      for (int i = 0; i < min(gog, up); i++) {
        if (a[h - 1] == store[i]) {
          cout << "YES";
          joj = false;
          break;
        }
      }
      if (joj) cout << "NO";
      cout << endl;
    }
  }
}
