using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(int.Parse).ToArray(); var max = A.Max(); var array = new int[max + 2]; array[0] = N; for (int i = 0; i < N; i++) { array[A[i] + 1]--; } for (int i = 1; i < max + 2; i++) { array[i] += array[i - 1]; } for (int i = 1; i < max + 1; i++) { Console.Write(array[i]); if (i < max) Console.Write(" "); } Console.WriteLine(); } }