#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long int N, K, Q;
  cin >> N >> K >> Q;
  long long int a[N + 1], sx, t, id, x;
  for (long long int i = 0; i < N; i++) cin >> a[i];
  priority_queue<long long int, vector<long long int>, greater<long long int> >
      pq;
  for (int i = 1; i <= Q; i++) {
    cin >> x >> id;
    id--;
    if (x == 1) {
      if (!pq.empty()) {
        t = pq.top();
        sx = pq.size();
        if (sx < K)
          pq.push(a[id]);
        else {
          if (t >= a[id])
            continue;
          else {
            pq.pop();
            pq.push(a[id]);
          }
        }
      } else
        pq.push(a[id]);
    } else {
      sx = pq.size();
      if (sx == 0)
        cout << "NO" << '\n';
      else {
        vector<long long int> temp;
        bool flag = false;
        while (!pq.empty()) {
          long long int x = pq.top();
          pq.pop();
          temp.push_back(x);
          if (x == a[id]) {
            flag = true;
            break;
          }
        }
        if (flag == true)
          cout << "YES" << '\n';
        else
          cout << "NO" << '\n';
        for (long long int var = 0; var < temp.size(); var++)
          pq.push(temp[var]);
      }
    }
  }
  return 0;
}
