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
27
28
29
30
31
32
33
34
35
import sys


input = sys.stdin.readline

############ ---- Input Functions ---- ############

def inp():
    return(int(input()))
def inlt():
    return(list(map(int,input().split())))
def insr():
    s = input()
    return(list(s[:len(s) - 1]))
def invr():
    return(map(int,input().split()))

def suma(lista):
    return(sum(int(x) for x in lista))

 
chetni = inp()
a = inlt()

ile_z_miast = []
for miasto in set(a):
    ile_z_miast.append(sum([1 for x in a if x == miasto]))

output = []

for i in range(chetni):
    output.append((i+1) * sum([x//(i+1) for x in ile_z_miast]))


print(" ".join(str(x) for x in output))