1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
n = int(input())
a = input().split()


ca = {}
for i in a:
    if i in ca.keys():
        ca[i]+=1 
    else:
        ca[i]=1

counts = list(ca.values())
l = len(counts)
m = max(counts)

stamps = ""

for k in range(1, n+1):
    if k<=m:
        zk = n - sum([counts[i]%k for i in range(l)])
        stamps+=str(zk)+" "
    else:
        stamps+="0 "
print(stamps)