#include #include using namespace std; using ll = long long; ll a[5010] = {}; int main(void){ // Here your code ! int n; cin >> n; for(int i = 0; i < n; i++){ cin >> a[i]; } sort(a,a+n); for(int i = 0; i < n; i++){ cout << a[i] << ((i == n-1) ? '\n' : ' '); } }