#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, q, x, y;
  cin >> n >> k >> q;
  int ar[n + 1];
  ar[0] = 0;
  for (int i = 1; i <= n; i++) {
    cin >> ar[i];
  }
  int ar1[k];
  for (int i = 0; i < k; i++) {
    ar1[i] = 0;
  }
  for (int i = 0; i < q; i++) {
    cin >> x >> y;
    if (x == 1) {
      for (int r = 0; r < k; r++) {
        if (ar[ar1[r]] < ar[y]) {
          swap(ar1[r], y);
        }
      }
    } else {
      int p = 0;
      for (int r = 0; r < k; r++) {
        if (ar1[r] == y) {
          cout << "YES" << endl;
          p = 1;
          break;
        }
      }
      if (p == 0) cout << "NO" << endl;
    }
  }
  return 0;
}
