#include <bits/stdc++.h>
using namespace std;
const int N = 4e5 + 5;
int t[N];
set<int> st;
int main() {
  int n, k, q;
  scanf("%d%d%d", &n, &k, &q);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &t[i]);
  }
  while (q--) {
    int type, friendId;
    scanf("%d%d", &type, &friendId);
    if (type == 1) {
      st.insert(t[friendId]);
      if ((int)st.size() > k) st.erase(*(st.begin()));
    } else if (type == 2) {
      bool ok = 0;
      int tmp = 1;
      set<int>::reverse_iterator rit;
      for (rit = st.rbegin(); rit != st.rend(); ++rit) {
        if (tmp <= k) {
          if (t[friendId] == *rit) {
            ok = 1;
            break;
          }
        } else {
          break;
        }
        tmp++;
      }
      if (ok)
        printf("YES\n");
      else
        printf("NO\n");
    }
  }
  return 0;
}
