1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
n = int(input(""))
i = input("")
a = [int(x) for x in i.split()]

cities = {}
total_stamps = 0

for num in a:
    if num not in cities:
        cities[num] = 1
    else:
        cities[num] += 1
    total_stamps += 1

text = ""
for k in range(1, n + 1):
    for_one = 0
    if k == 1:
        text += str(total_stamps) + " "
    else:
        for znaczki in cities.values():
            for_one += znaczki // k
        for_one *= k
        text += str(for_one) + " "

print(text)