import sys
import numpy as np


def main(stdin):
    N, K, Q = stdin[:3]
    ans = np.full(N + 1, K - Q, dtype=np.int64)
    for i in stdin[3:]:
        ans[i] += 1
    return ans


if sys.argv[-1] == 'ONLINE_JUDGE':
    import numba
    from numba.pycc import CC
    cc = CC('my_module')
    cc.export('main', 'i8[:](i8[:],)')(main)
    # b1: bool, i4: int32, i8: int64, double: f8, [:], [:, :]
    cc.compile()
else:
    #from my_module import main
    stdin = np.array([int(_) for _ in open(0).read().split()])
    ans = main(stdin)
    print(*np.where(ans > 0, 'Yes', 'No')[1:], sep='\n') import sys sys import numpy as np numpy def main(stdin):
    N, K, Q = stdin[:3]
    ans = np.full(N + 1, K - Q, dtype=np.int64)
    for i in stdin[3:]:
        ans[i] += 1
    return ans main N, K, Q = stdin[:3] N stdin[:3] stdin :3 3 K Q ans = np.full(N + 1, K - Q, dtype=np.int64) ans np.full(N + 1, K - Q, dtype=np.int64) np.full np full N + 1 N 1 K - Q K Q dtype=np.int64 dtype np.int64 np int64 for i in stdin[3:]:
        ans[i] += 1
     i stdin[3:] stdin 3: 3 ans[i] += 1 ans[i] ans i 1 return ans ans stdin stdin if sys.argv[-1] == 'ONLINE_JUDGE':
    import numba
    from numba.pycc import CC
    cc = CC('my_module')
    cc.export('main', 'i8[:](i8[:],)')(main)
    # b1: bool, i4: int32, i8: int64, double: f8, [:], [:, :]
    cc.compile()
else:
    #from my_module import main
    stdin = np.array([int(_) for _ in open(0).read().split()])
    ans = main(stdin)
    print(*np.where(ans > 0, 'Yes', 'No')[1:], sep='\n') sys.argv[-1] == 'ONLINE_JUDGE' sys.argv[-1] sys.argv sys argv -1 'ONLINE_JUDGE' import numba numba from numba.pycc import CC cc = CC('my_module') cc CC('my_module') CC 'my_module' cc.export('main', 'i8[:](i8[:],)')(main) cc.export('main', 'i8[:](i8[:],)') cc.export cc export 'main' 'i8[:](i8[:],)' main cc.compile() cc.compile cc compile int(_) for _ in open(0).read().split() for _ in open(0).read().split() _ open(0).read().split() (0).read().split (0).read() (0).read (0) open 0 read split for _ in open(0).read().split() int(_) int _ stdin = np.array([int(_) for _ in open(0).read().split()]) stdin np.array([int(_) for _ in open(0).read().split()]) np.array np array [int(_) for _ in open(0).read().split()] ans = main(stdin) ans main(stdin) main stdin print(*np.where(ans > 0, 'Yes', 'No')[1:], sep='\n') print *np.where(ans > 0, 'Yes', 'No')[1:] np.where(ans > 0, 'Yes', 'No')[1:] np.where(ans > 0, 'Yes', 'No') np.where np where ans > 0 ans 0 'Yes' 'No' 1: 1 sep='\n' sep '\n' ans = main(stdin) main(stdin) ans cc = CC('my_module') CC('my_module') cc stdin = np.array([int(_) for _ in open(0).read().split()]) np.array([int(_) for _ in open(0).read().split()]) stdin def main(stdin):
    N, K, Q = stdin[:3]
    ans = np.full(N + 1, K - Q, dtype=np.int64)
    for i in stdin[3:]:
        ans[i] += 1
    return ans def main(stdin):
    N, K, Q = stdin[:3]
    ans = np.full(N + 1, K - Q, dtype=np.int64)
    for i in stdin[3:]:
        ans[i] += 1
    return ans main
import sys
import numpy as np


def main(stdin):
    N, K, Q = stdin[:3]
    ans = np.full(N + 1, K - Q, dtype=np.int64)
    for i in stdin[3:]:
        ans[i] += 1
    return ans


if sys.argv[-1] == 'ONLINE_JUDGE':
    import numba
    from numba.pycc import CC
    cc = CC('my_module')
    cc.export('main', 'i8[:](i8[:],)')(main)
    # b1: bool, i4: int32, i8: int64, double: f8, [:], [:, :]
    cc.compile()
else:
    #from my_module import main
    stdin = np.array([int(_) for _ in open(0).read().split()])
    ans = main(stdin)
    print(*np.where(ans > 0, 'Yes', 'No')[1:], sep='\n')
