def main(): n = int(input()) arr = list(map(int, input().split())) if n == 1: exit(print(*arr)) mx = max(arr) ans = [0] * (mx + 1) for a in arr: ans[a] += 1 for i in range(mx - 1, 0, -1): ans[i] += ans[i + 1] print(*ans[1:]) if __name__ == "__main__": main()