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.util.*;

public class Main {
    public static void main(String[] args){

        try{
            task1();
        }
        catch (Exception e){
            e.printStackTrace();
        }
    }

    public static void task1() throws IOException {
        MyReader reader = new MyReader(System.in);
        int n = reader.nextInt();
        int k = reader.nextInt();
        int q = reader.nextInt();
        int[] friends = new int[n];
        int[] window = new int[k];
        for(int i = 0; i < k; i++)
            window[i] = -1;
        for(int i = 0 ; i < n; i ++)
            friends[i] = reader.nextInt();
        for(int i = 0; i < q; i++){
            int type = reader.nextInt();
            int id = reader.nextInt();
            if(type == 1){
                if(window[k - 1] < friends[id - 1]) {
                    int j = k - 2;
                    while(j >= 0 && ((window[j]) == -1 || (friends[window[j] - 1] < friends[id - 1]))){
                        window[j + 1] = window[j];
                        j--;
                    }
                    j++;
                    window[j] = id;
                }
            }
            else{
                boolean b = false;
                for(int j = 0; j < k; j++)
                    if (window[j] == id) {
                        System.out.println("YES");
                        b = true;
                    }
                if(!b)
                    System.out.println("NO");
            }
        }
    }

    public static class MyReader {
        BufferedInputStream in;

        final int bufSize = 1 << 16;
        final byte b[] = new byte[bufSize];

        public MyReader( InputStream in ) {
            this.in = new BufferedInputStream(in, bufSize);
        }

        public int nextInt() throws IOException {
            int c;
            while ((c = nextChar()) <= 32)
                ;
            int x = 0, sign = 1;
            if (c == '-') {
                sign = -1;
                c = nextChar();
            }
            while (c >= '0') {
                x = x * 10 + (c - '0');
                c = nextChar();
            }
            return x * sign;
        }

        StringBuilder _buf = new StringBuilder();
        public String nextWord() throws IOException {
            int c;
            _buf.setLength(0);
            while ((c = nextChar()) <= 32 && c != -1)
                ;
            if (c == -1)
                return null;
            while (c > 32) {
                _buf.append((char)c);
                c = nextChar();
            }
            return _buf.toString();
        }

        int bn = bufSize, k = bufSize;

        public int nextChar() throws IOException {
            if (bn == k) {
                k = in.read(b, 0, bufSize);
                bn = 0;
            }
            return bn >= k ? -1 : b[bn++];
        }

        public int nextNotSpace() throws IOException {
            int ch;
            while ((ch = nextChar()) <= 32 && ch != -1)
                ;
            return ch;
        }
    }
}
