n = int(input()) a = list(map(int, input().split())) b = [0]*a[0] for v in a: b[v-1] += 1 for i in range(a[0]-1, 0, -1): b[i-1] += b[i] print(*b)