#include <bits/stdc++.h>
using namespace std;
int t[150001], on[7];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, k, q;
  cin >> n >> k >> q;
  for (int i = 1; i <= n; i++) cin >> t[i];
  int d = 0;
  for (int qq = 1; qq <= q; qq++) {
    int type, id;
    cin >> type >> id;
    if (type == 1) {
      if (d < k) {
        d++;
        on[d] = id;
      } else {
        int imin = 1;
        for (int i = 2; i <= d; i++)
          if (t[on[i]] < t[on[imin]]) imin = i;
        if (t[id] > t[on[imin]]) on[imin] = id;
      }
    } else {
      bool f = 0;
      for (int i = 1; i <= k; i++)
        if (on[i] == id) f = 1;
      if (f)
        cout << "YES\n";
      else
        cout << "NO\n";
    }
  }
  return 0;
}
