#include #include using namespace std; int main(){ int n;cin>>n; vector A(100001); for(int i = 0; n > i; i++){ int x;cin>>x;A[x-1]++; } for(int i = 99999; 0 < i; i--){ A[i-1] += A[i]; } int i = 0; while(A[i]){ cout << A[i] << " \n"[A[i+1] == 0]; i++; } }