#include using namespace std; int main() { int N; cin >> N; int ma = 1e5; vector v( ma + 1 ); int A1 = 0; for( int i = 0; i < N; i++ ) { int A; cin >> A; v[0]++; v[A]--; if( i == 0 ) A1 = A; } for( int i = 0; i < A1; i++ ) v[i + 1] += v[i]; for( int i = 0; i < A1; i++ ) { if( i ) cout << " "; cout << v[i]; } cout << endl; }