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.ArrayList;
import java.util.Collections;
import java.util.StringTokenizer;

public class MainActivity {

	private static FastScanner in = new FastScanner(System.in);
	private static PrintWriter out = new PrintWriter(System.out);

	public static void main(String[] args) {
		int N = in.nextInt();
		int k = in.nextInt();
		int Q = in.nextInt();
		ArrayList<Bear> table = new ArrayList<Bear>();
		for (int i = 0; i < N; i++) {
			table.add(new Bear(in.nextInt()));
		}
		int currentOn = 0;
		int minT = 0;
		boolean found = false;
		ArrayList<Integer> auth = new ArrayList<Integer>();
		for (int i = 0; i < Q; i++) {
			String[] params = in.nextLine().split(" ");
			if (Integer.parseInt(params[0]) == 1) {
				Bear b = table.get(Integer.parseInt(params[1]) - 1);
				if (currentOn < k) {
					auth.add(b.t);
					if (b.t < minT || !found) {
						minT = b.t;
					}
					found = true;
				} else if (minT < b.t) {
					auth.add(b.t);
					Collections.sort(auth);
					auth.remove(0);
					minT = auth.get(0);
				}
				currentOn++;
				b.status = true;
			} else {
				Bear b = table.get(Integer.parseInt(params[1]) - 1);
				if (b.status == true) {
					if (b.t >= minT) {
						out.println("YES");
					} else {
						out.println("NO");
					}
				} else {
					out.println("NO");
				}
			}
		}
		out.close();
		in.close();
	}

	public static class Bear implements Comparable<Bear> {

		boolean status;
		int t;

		public Bear(int t) {
			this.t = t;
		}

		@Override
		public int compareTo(Bear o) {
			if (o.t == this.t) {
				return 0;
			} else if (o.t >= this.t) {
				return -1;
			} else {
				return 1;
			}
		}

	}

	private static class FastScanner {

		private BufferedReader br;
		private StringTokenizer stok;

		public FastScanner(InputStream is) {
			this.br = new BufferedReader(new InputStreamReader(is));
		}

		private String nextToken() throws IOException {
			while (this.stok == null || !this.stok.hasMoreTokens()) {
				String s = this.br.readLine();
				if (s == null) {
					return null;
				}
				this.stok = new StringTokenizer(s);
			}
			return this.stok.nextToken();
		}

		public int nextInt() {
			try {
				return Integer.parseInt(nextToken());
			} catch (Exception e) {
				return 0;
			}
		}

		public String nextLine() {
			try {
				return this.br.readLine();
			} catch (Exception e) {
				return "";
			}
		}

		public void close() {
			try {
				this.br.close();
			} catch (Exception e) {

			}
		}

	}

}