링크 : https://www.acmicpc.net/problem/10989
#include <iostream>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int N; cin >> N;
int arr[10001] = {0,};
int n =0;
for(int i = 0; i < N; i++){
cin >> n;
arr[n] += 1;
}
for(int i = 1; i<=10000; i++){
for(int j = 0; j<arr[i]; j++){
cout << i << "\n";
}
}
return 0;
}