5 lines
136 B
Python
5 lines
136 B
Python
from collections import Counter
|
|
input()
|
|
count = Counter(input().split())
|
|
input()
|
|
print(' '.join(str(count[k]) for k in input().split())) |