#include <bits/stdc++.h>
using namespace std;
int A[150010], N, M, K, B[10], k, mini, ind;
bool u;
int main() {
  cin >> N >> K >> M;
  for (int i = 1; i <= N; i++) cin >> A[i];
  for (int i = 0, x, y; i < M; i++) {
    cin >> x >> y;
    if (x == 1) {
      if (k < K) {
        B[++k] = y;
      } else {
        mini = A[y], ind = 0;
        for (int j = 1; j <= K; j++) {
          if (mini > A[B[j]]) {
            mini = A[B[j]];
            ind = j;
          }
        }
        B[ind] = y;
      }
    } else {
      u = 0;
      for (int j = 1; j <= k; j++)
        if (B[j] == y) {
          cout << "\nYES";
          u = 1;
        }
      if (!u) cout << "\nNO";
    }
  }
  return 0;
}
