n, k, q = list(map(int, input().split()))

def judge():

    val = {}

    for _ in range(q):

        a = int(eval(input()))

        val[a-1] = val.get(a-1,0) + 1

    #print(val)

    for i in range(n):

        if val.get(i,k-q) + (k - q) > 0:

            print('Yes')

        else:

            print('No')

if k > q:

    print((*['Yes' for _ in range(n)]))

else:

    ans = judge()

import sys

input = sys.stdin.readline

n, k, q = list(map(int, input().split()))

def judge():

    val = {}

    for _ in range(q):

        a = int(eval(input()))

        val[a-1] = val.get(a-1,0) + 1

    #print(val)

    for i in range(n):

        if val.get(i,k-q) + (k - q) > 0:

            print('Yes')

        else:

            print('No')

if k > q:

    print((*['Yes' for _ in range(n)]))

else:

    ans = judge()

n, k, q = list(map(int, input().split()))


def judge():
    val = {}
    for _ in range(q):
        a = int(eval(input()))
        val[a - 1] = val.get(a - 1, 0) + 1
    # print(val)
    for i in range(n):
        if val.get(i, k - q) + (k - q) > 0:
            print("Yes")
        else:
            print("No")


if k > q:
    print((*["Yes" for _ in range(n)]))
else:
    ans = judge()

import sys

input = sys.stdin.readline
n, k, q = list(map(int, input().split()))


def judge():
    val = {}
    for _ in range(q):
        a = int(eval(input()))
        val[a - 1] = val.get(a - 1, 0) + 1
    # print(val)
    for i in range(n):
        if val.get(i, k - q) + (k - q) > 0:
            print("Yes")
        else:
            print("No")


if k > q:
    print((*["Yes" for _ in range(n)]))
else:
    ans = judge()

+import sys + +input = sys.stdin.readline