#include <bits/stdc++.h>
using namespace std;
int a[150003], poz[10], fk[10], n, p, k, q, x, y, i, L;
bool ok;
int main() {
  cin >> n >> k >> q;
  for (i = 1; i <= k; ++i) fk[i] = -1;
  for (i = 1; i <= n; ++i) cin >> a[i];
  while (q--) {
    cin >> x >> y;
    if (x == 2) {
      ok = 0;
      for (i = 1; i <= k; ++i)
        if (poz[i] == y) ok = 1;
      if (ok)
        cout << "YES\n";
      else
        cout << "NO\n";
    } else {
      ok = 1;
      for (i = 1; i <= k && ok; ++i)
        if (fk[i] == -1) {
          ok = 0;
          fk[i] = a[y];
          poz[i] = y;
        }
      if (ok) {
        int mn = fk[1], L = 1;
        for (i = 2; i <= k; ++i) {
          if (fk[i] < mn) {
            mn = fk[i];
            L = i;
          }
        }
        if (a[y] > mn) {
          fk[L] = a[y];
          poz[L] = y;
        }
      }
    }
  }
  return 0;
}
