Buggy python submission (verdict: Time Limit Exceeded):
m = list(map(int,input().split()))
a=[int(input()) for i in range(m[2])]

n = [0] * m[0]

b=list(set(a))
for i in range(len(b)):
    n[b[i]-1] = a.count(b[i])

  
for i in range(m[0]):
    if n[i] - m[2] + m[1] > 0:
        print('Yes')
    else:
        print('No')

Fixed submission:
m = list(map(int,input().split()))
n = [0] * m[0]

for i in range(m[2]):
    n[int(input())-1] += 1
  
for i in range(m[0]):
    if n[i] - m[2] + m[1] > 0:
        print('Yes')
    else:
        print('No')

Buggy python submission (verdict: Time Limit Exceeded):
m = list(map(int,input().split()))
a=[int(input()) for i in range(m[2])]

n = [0] * m[0]

b=list(set(a))
for i in range(len(b)):
    n[b[i]-1] = a.count(b[i])

  
for i in range(m[0]):
    if n[i] - m[2] + m[1] > 0:
        print('Yes')
    else:
        print('No')

Fixed submission:
m = list(map(int,input().split()))
n = [0] * m[0]

for i in range(m[2]):
    n[int(input())-1] += 1
  
for i in range(m[0]):
    if n[i] - m[2] + m[1] > 0:
        print('Yes')
    else:
        print('No')

Buggy python submission (verdict: Time Limit Exceeded):
m = list(map(int,input().split()))
a=[int(input()) for i in range(m[2])]

n = [m[1]] * m[0]

for i in range(m[2]):
    n = [i-1 for i in n]
    n[a[i]-1] +=1
for i in range(m[0]):
    if n[i]>0:
        print('Yes')
    else:
        print('No')

Fixed submission:
m = list(map(int,input().split()))
n = [0] * m[0]

for i in range(m[2]):
    n[int(input())-1] += 1
  
for i in range(m[0]):
    if n[i] - m[2] + m[1] > 0:
        print('Yes')
    else:
        print('No')

Buggy python submission (verdict: Runtime Error):
m = list(map(int,input().split()))
a=[int(input()) for i in range(m[2])]

n = [m[1]] * m[2]

for i in range(m[2]):
    n = [i-1 for i in n]
    n[a[i]-1] +=1

for i in range(m[0]):
    if n[i]>0:
        print('Yes')
    else:
        print('No')
    

Fixed submission:
m = list(map(int,input().split()))
n = [0] * m[0]

for i in range(m[2]):
    n[int(input())-1] += 1
  
for i in range(m[0]):
    if n[i] - m[2] + m[1] > 0:
        print('Yes')
    else:
        print('No')

Buggy python submission (verdict: Runtime Error):
m = list(map(int,input().split()))
a=[int(input()) for i in range(m[2])]

n = [m[1]] * m[2]
print(n)

for i in range(m[2]):
    n = [i-1 for i in n]
    n[a[i]-1] +=1

for i in range(m[0]):
    if n[i]>0:
        print('Yes')
    else:
        print('No')
    

Fixed submission:
m = list(map(int,input().split()))
n = [0] * m[0]

for i in range(m[2]):
    n[int(input())-1] += 1
  
for i in range(m[0]):
    if n[i] - m[2] + m[1] > 0:
        print('Yes')
    else:
        print('No')

Buggy python submission (verdict: Time Limit Exceeded):
m = list(map(int,input().split()))
a=[int(input()) for i in range(m[2])]

n=[]
for i in range(m[0]):
    n.append(m[1])

for i in range(m[2]):
    n[a[i]-1] +=1
    n = [i-1 for i in n]

for i in range(m[0]):
    if n[i]>0:
        print('Yes')
    else:
        print('No')
    

Fixed submission:
m = list(map(int,input().split()))
n = [0] * m[0]

for i in range(m[2]):
    n[int(input())-1] += 1
  
for i in range(m[0]):
    if n[i] - m[2] + m[1] > 0:
        print('Yes')
    else:
        print('No')