#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, q;
  cin >> n >> k >> q;
  vector<int> vec(n);
  for (int i = 0; i < n; ++i) {
    scanf("%d", &vec[i]);
  }
  vector<int> fr(k, -1);
  for (int i = 0; i < q; ++i) {
    static int t, f;
    scanf("%d %d", &t, &f);
    f -= 1;
    if (t == 1) {
      for (int ii = 0; ii < k; ++ii) {
        if (fr[ii] < vec[f]) {
          for (int i2 = k - 1; i2 > ii; --i2) {
            fr[i2] = fr[i2 - 1];
          }
          fr[ii] = vec[f];
          break;
        }
      }
    } else {
      bool yes = false;
      for (int ii = 0; ii < k && !yes; ++ii) {
        yes |= (vec[f] == fr[ii]);
      }
      printf("%s\n", yes ? "YES" : "NO");
    }
  }
  return 0;
}
