1 1 1
1000000000
2 1
 20 2 15
12698951 55128070 116962690 156763505 188535242 194018601 269939893 428710623 442819431 483000923 516768937 552903993 633087286 656092270 671535141 714291344 717660646 846508634 879748146 937368929
2 7
1 2
2 4
1 19
1 12
1 5
2 18
2 11
1 16
2 1
2 3
2 19
1 17
2 9
2 6
 6 3 10
62417580 78150524 410053501 582708235 630200761 760672946
2 2
1 5
1 2
1 4
2 4
2 1
2 1
1 6
2 5
2 6

NO
 NO
NO
NO
NO
NO
NO
YES
NO
NO
 NO
YES
NO
NO
YES
YES

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class KSN {

	static PrintWriter out = new PrintWriter(System.out);

	static void input() throws IOException {
		Reader.init(System.in);
		Reader.delimiter = " ";
	}

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub

		input();
		solve();
	}

	static void solve() throws IOException {

		int n = Reader.nextInt();
		int k = Reader.nextInt();
		int q = Reader.nextInt();

		int[] p_queue = new int[k + 1];

		boolean[] online = new boolean[(int) 1e6];

		int[] importance = Reader.nextIntArray(n);

		int[][] queries = new int[q][2];

		int curIndex = 0, size = 0;

		for (int i = 0; i < q; ++i) {
			queries[i][0] = Reader.nextInt();
			queries[i][1] = Reader.nextInt();

			curIndex = size;

			online[p_queue[k]] = false;

			int index = queries[i][1] - 1;

			if (queries[i][0] == 1) {

				int val = importance[index];

				if ((curIndex > 0 && val > importance[p_queue[curIndex - 1]]) || size <= k) {

					while (curIndex > 0 && val > importance[p_queue[curIndex - 1]]) {
						p_queue[curIndex] = p_queue[curIndex - 1];
						curIndex--;
					}

					p_queue[curIndex] = index;

					online[index] = true;

					if (size < k)
						size++;

				}

			}

			else {

				if (online[index])
					out.println("YES");

				else
					out.println("NO");
			}

		}

		out.flush();
		out.close();

	}

	static class Reader {

		static BufferedReader reader;
		static StringTokenizer tokenizer;
		static String delimiter = " ";

		static void init(InputStream input) {
			reader = new BufferedReader(new InputStreamReader(input));
			tokenizer = new StringTokenizer(" ");
		}

		static String next() throws IOException {
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {

				tokenizer = new StringTokenizer(reader.readLine());
			}
			return tokenizer.nextToken(delimiter);
		}

		static String nextLine() throws IOException {
			return reader.readLine();
		}

		static char nextChar() throws IOException {
			return (char) reader.read();
		}

		static int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		static double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		static long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		static long[] nextLongArray(int n) throws IOException {
			long[] arr = new long[n];
			for (int i = 0; i < n; i++) {
				arr[i] = nextLong();
			}

			return arr;
		}

		static int[] nextIntArray(int n) throws IOException {
			int[] arr = new int[n];
			for (int i = 0; i < n; i++) {
				arr[i] = nextInt();
			}
			return arr;
		}

	}

}