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.*;
import java.math.BigInteger;
import java.util.*;

public class Main implements Runnable {

    BufferedReader in;
    PrintWriter out;
    StringTokenizer tok = new StringTokenizer("");

    void init() throws FileNotFoundException {
        try {
            in = new BufferedReader(new FileReader("input.txt"));
            out = new PrintWriter("output.txt");
        } catch (Throwable e) {
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
        }
    }

    String readString() throws IOException {
        while (!tok.hasMoreTokens()) {
            try {
                tok = new StringTokenizer(in.readLine());
            } catch (Exception e) {
                return null;
            }
        }
        return tok.nextToken();
    }

    int readInt() throws IOException {
        return Integer.parseInt(readString());
    }

    int[] readIntArray(int size) throws IOException {
        int[] res = new int[size];
        for (int i = 0; i < size; i++) {
            res[i] = readInt();
        }
        return res;
    }

    long readLong() throws IOException {
        return Long.parseLong(readString());
    }

    double readDouble() throws IOException {
        return Double.parseDouble(readString());
    }

    public static void main(String[] args) {
        new Thread(null, new Main(), "", 1l * 200 * 1024 * 1024).start();
    }

    long timeBegin, timeEnd;

    void time() {
        timeEnd = System.currentTimeMillis();
        System.err.println("Time = " + (timeEnd - timeBegin));
    }

    long memoryTotal, memoryFree;

    void memory() {
        memoryFree = Runtime.getRuntime().freeMemory();
        System.err.println("Memory = " + ((memoryTotal - memoryFree) >> 10)
                + " KB");
    }

    public void run() {
        try {
            timeBegin = System.currentTimeMillis();
            memoryTotal = Runtime.getRuntime().freeMemory();
            init();
            solve();
            out.close();
            if (System.getProperty("ONLINE_JUDGE") == null) {
                time();
                memory();
            }
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }
    }
    int[] rating;
    void solve() throws IOException {
        int friendsCount = readInt(), windowSize=readInt(), q=readInt();
        rating = new int[friendsCount+1];
        for (int i=0;i<friendsCount;i++){
            rating[i]=readInt();
        }
        rating[friendsCount]=-1;
        boolean[] awokenFriends = new boolean[friendsCount];
        Arrays.fill(awokenFriends,false);
        Integer[] online = new Integer[windowSize];
        Arrays.fill(online,friendsCount);
        for (int i = 0; i < q; i++) {
            int a = readInt();
            int friend = readInt()-1;
            if (a==1){
                awokenFriends[friend]=true;
                if (rating[friend]>rating[online[0]]) {
                    online[0]=friend;
                    Arrays.sort(online, new Comparator<Integer>() {
                        @Override
                        public int compare(Integer o1, Integer o2) {
                            int q = rating[o1];
                            int p = rating[o2];
                            int result = q-p;
                            return result;
                        }
                    });
                }
            }else{
                if (rating[friend]>=rating[online[0]]&&awokenFriends[friend]) {
                        out.println("YES");
                }else{
                    out.println("NO");
                }
            }
        }
//        for (int i = 0; i < 150000; i++) {
//            out.print(i+" ");
//        }
//        out.println();
//        for (int i = 1; i < 150000; i++) {
//            out.println(1+" "+i);
//        }
    }
}