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.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.PriorityQueue;
import java.util.Scanner;

public class VKCUP2  {
         public class Node implements Comparable<Node> {
        	 int index;
        	 int value;
        	 Node(int index,int value){
        		 this.index = index;
        		 this.value = value;
        	 }
        		public int compareTo(Node n) {
    				if(value > n.value) {
    					return 1;
    				}
    				if(value < n.value) {
    					return -1;
    				}
    				else
    					return 0;
    			}
         }
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int NFriends = sc.nextInt();
		int NOnline = sc.nextInt();
		int NQ = sc.nextInt();
		VKCUP2 VK = new VKCUP2();
        PriorityQueue<Node> PQ = new PriorityQueue<Node>();
        HashMap<Integer,Integer> hash = new HashMap<Integer,Integer>();
		int[] Array = new int[NFriends];
		ArrayList<Integer> Array2 = new ArrayList<Integer>();
		for(int i =0;i<NFriends;i++){
			int Love = sc.nextInt();
			Array[i] = Love;
			hash.put(i+1, Love);
		}		
		int K =0;
		for(int i =0;i<NQ;i++){
			int type = sc.nextInt();
			int de = sc.nextInt();
			if(type == 1) {
				if(K < NOnline) {
					PQ.add(VK.new Node(de,hash.get(de)));
					K++;
				}
				else {

					if(hash.get(de) > PQ.peek().value) {
						PQ.remove();
						PQ.add(VK.new Node(de,hash.get(de)));
					}
				}
			}
			int b =0;
			if(type == 2) {
				for(Node e : PQ) {
					if(e.index == de) {
						System.out.println("YES");
						b=1;
					}
					
				}
				if(b==0){
					System.out.println("NO");

				}
			}
	
		}
	
		sc.close();

	}

}
