import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] sum = new int[(int)1e5+1]; while(N-->0){ int A = sc.nextInt(); sum[A]++; } for(int i=(int)1e5-1;i>0;i++){ sum[i] += sum[i+1]; } int p = 1; while(p<=1e5){ if(sum[p]==0) break; System.out.println(sum[p++]); } } }