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.InputStreamReader;
import java.util.LinkedList;

public class VK_Prob_B {

	public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		args=br.readLine().split(" ");
		int n=Integer.parseInt(args[0]);
		int k=Integer.parseInt(args[1]);
		int q=Integer.parseInt(args[2]);
		args=br.readLine().split(" ");
		Friend[] arr=new Friend[n];
		Friend[] arrs=new Friend[n];
		for(int i=0;i<n;i++){
			Friend f=new Friend(i,Integer.parseInt(args[i]));
			arr[i]=f;
			arrs[i]=f;
		}
		LinkedList<Friend> list=new LinkedList<>();
		
		
		
		/*Arrays.sort(arrs,new Comparator<Friend>() {
			/* (non-Javadoc)
			 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
			 
			@Override
			public int compare(Friend o1, Friend o2) {
				// TODO Auto-generated method stub
				return o2.t-o1.t;
			}
		});
		System.out.println();
		for(Friend i:arrs){
			System.out.print(i.t+" ");
		}
		System.out.println();
		*/
		while(q-->0){
			args=br.readLine().split(" ");
			/*(Friend i:arr){
				System.out.print(i.online+" ");
			}
			System.out.println();*/
			if(args[0].equals("1")){
				int p=Integer.parseInt(args[1])-1;
				arr[p].online=true;
				if(list.size()<k){
					int s=list.size();
					for(int i=0;i<list.size();i++){
						Friend ff=list.get(i);
						if(ff.t<arr[p].t){
							list.add(i, arr[p]);
						break;
						}
					}
					if(s==list.size()){
						list.add( arr[p]);
							
					}
					
				}else{
					for(int i=0;i<list.size();i++){
						Friend ff=list.get(i);
						if(ff.t<arr[p].t){
							list.add(i, arr[p]);
							list.removeLast();
						break;
						}
					}
				}
				
				
			}else{
				boolean s=false;
				int p=Integer.parseInt(args[1])-1;
				//System.out.println(arr[p].online);
				int ctr=0;
				for(Friend f:list){
					
					if(f.id==p){
						s=true;
						System.out.println("YES");
						break;
					}
				}
				if(!s)System.out.println("NO");
			}
		}
		
	}

}
class Friend{
	boolean online;
	int id;
	int t;
	/**
	 * @param online
	 * @param id
	 * @param t
	 */
	public Friend( int id, int t) {
		super();
		this.online = false;
		this.id = id;
		this.t = t;
	}
	
}
