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.Scanner;
import java.lang.*;
import java.util.*;
public class rodon {
	
	public static void main(String args[]){
		Scanner input = new Scanner(System.in);
	    int k=0;
	    float time=0,time2=0;
	    float p1=0,p2=0;
		int f=1,num=1;
		float r = 0,t=0;
	    float x=0;
		float y=0;
		int i=1,min=1000000000;
		int n;
		int s=0 ;
		n=input.nextInt();
		k=input.nextInt();
		int q = input.nextInt();
		int love[]=new int[n];
		int love2[]=new int[n];
		boolean []a = new boolean [n];
		Arrays.fill(a, false);
		for(int g = 0 ; g<n ; g++)
		{
			love[g]=input.nextInt();
			
		}
		for(int j=0; j<q ; j++ )
		{
			
			int p =input.nextInt();
			int number = input.nextInt();
			if (p==1)
			{
				a[number-1]= true ;
				time++;
				if(time>k)
				{
					time--;
					s=0;
					int b[] = new int [k+1];
					int c[] = new int [k+1];
					for(int o = 0 ; o< n && s<=k ; o++ )
					{
						if(a[o] == true)
						{
							b[s]=o;
							c[s]= love[o];
						
							s++;
							
						}
						
					}
					t=0;
					Arrays.sort(c);
					int your = c[0];
					c=Arrays.copyOfRange(c, 1 , c.length);
					for(int u =0 ; u<c.length ; u++)
				    {
						int you= 0 ;
				     	for(int l=0 ; l<c.length && l<a.length ; l++)
				     	{
				     		if (love[b[u]]==c[l])
					           {
				     			a[b[u]]=true;
					             
					           }
				     		else if (love[b[u]]==your)
				     		{
				     			a[b[u]]=false;
				     		}
				     			
					    }
				     	
					}
				}
			}
				else if (p==2)
				{
					if(a[number-1]==true)
					{
						System.out.println("YES");
					}
					else
					{
						System.out.println("NO");
					}
				}
			}
			
		}
		    	
	
		
	      
		
			
	}
