#include using namespace std; using LL = long long; LL A[100001]; int main() { int N; cin >> N; int a, H = -1; for (int i = 1; i <= N; i++) { cin >> a; A[1]++; A[a + 1]--; H = max(H, a); } for (int i = 1; i <= H; i++) { A[i] += A[i - 1]; } for (int i = 1; i <= H; i++) { if (i != 1) cout << " "; cout << A[i]; } cout << endl; }