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.Comparator;
import java.util.HashMap;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;


	
public class BearSubmit {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line="";
		String [] splitted = br.readLine().split(" ");
		Friends friends = new Friends();
		int n = Integer.parseInt(splitted[0]);
		int nQ=Integer.parseInt(splitted[2]);
		friends.window=Integer.parseInt(splitted[1]);
		splitted = br.readLine().split(" ");
		int i=1;
		for(String relationship :splitted){
			friends.friends.put(i,new Bear(i++,Integer.parseInt(relationship),false));
		}
			for(int j=0;j<nQ;j++){
			line =br.readLine();
			splitted=line.split(" ");
			if(Integer.parseInt(splitted[0])==1){
				friends.makeOnline(Integer.parseInt(splitted[1]));
			}
			if(Integer.parseInt(splitted[0])==2){
				System.out.println(friends.isDisplayed(Integer.parseInt(splitted[1])));
			}	
			}
			
		
	}

}
class Bear {
	private Integer id;
	private Integer relationship;
	private Boolean isOnline;
	public Bear() {
	}
	public Bear(Integer id, Integer relationship, Boolean isOnline) {
		super();
		this.id = id;
		this.relationship = relationship;
		this.isOnline = isOnline;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getRelationship() {
		return relationship;
	}
	public void setRelationship(Integer relationship) {
		this.relationship = relationship;
	}
	public Boolean getIsOnline() {
		return isOnline;
	}
	public void setIsOnline(Boolean isOnline) {
		this.isOnline = isOnline;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((isOnline == null) ? 0 : isOnline.hashCode());
		result = prime * result + ((relationship == null) ? 0 : relationship.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Bear other = (Bear) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (isOnline == null) {
			if (other.isOnline != null)
				return false;
		} else if (!isOnline.equals(other.isOnline))
			return false;
		if (relationship == null) {
			if (other.relationship != null)
				return false;
		} else if (!relationship.equals(other.relationship))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Bear [id=" + id + ", relationship=" + relationship + ", isOnline=" + isOnline + "]";
	}
	
	
	

}

class Friends {
	Map <Integer,Bear> friends = new HashMap<Integer,Bear>();
	SortedSet<Bear> display= new TreeSet<Bear>(new Comparator<Bear>() {

		@Override
		public int compare(Bear b2, Bear b1) {
			// TODO Auto-generated method stub
			return b1.getRelationship().compareTo(b2.getRelationship());
		}
	});
	Integer window;
	public Friends() {
	}
	public void makeOnline(Integer id){
		Bear bear =	friends.get(id);
	    bear.setIsOnline(true);
		if(display.size()<window){
			display.add(bear);
			return;
		}
		display.remove(display.last());
		display.add(bear);
	}
	public boolean isOnline(Integer id){
		return friends.get(id).getIsOnline();
	}
	public String isDisplayed(Integer id){
		if(display.contains(friends.get(id)))
			return "YES";
		else
			return "NO";
	}
	@Override
	public String toString() {
		return "Friends [friends=" + friends + ", display=" + display + ", window=" + window + "]";
	}
}