#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n, k, q;
  cin >> n >> k >> q;
  vector<int> t(n + 1);
  for (int i = 1; i <= n; ++i) {
    cin >> t[i];
  }
  pair<int, int> online[k];
  for (int i = 0; i < k; ++i) {
    online[i] = make_pair(0, 0);
  }
  for (int i = 0; i < q; ++i) {
    int type, id;
    cin >> type >> id;
    if (type == 1) {
      for (int i = 0; i < k; ++i) {
        if (online[i].first < t[id]) {
          for (int j = k - 1; j > i; --j) {
            online[j] = online[j - 1];
          }
          online[i] = make_pair(t[id], id);
          break;
        }
      }
    } else {
      bool was = false;
      for (int i = 0; i < k; ++i) {
        if (online[i].second == id) {
          cout << "YES" << endl;
          was = true;
          break;
        }
      }
      if (!was) {
        cout << "NO" << endl;
      }
    }
  }
  return 0;
}
