//#include #include // cout, endl, cin #include // string, to_string, stoi #include // vector #include // min, max, swap, sort, reverse, lower_bound, upper_bound #include // pair, make_pair #include // tuple, make_tuple #include // int64_t, int*_t #include // printf #include // map #include // queue, priority_queue #include // set #include // stack #include // deque #include // unordered_map #include // unordered_set #include // bitset #include // isupper, islower, isdigit, toupper, tolower#include // cout, endl, cin #include // string, to_string, stoi #include // vector #include // min, max, swap, sort, reverse, lower_bound, upper_bound #include // pair, make_pair #include // tuple, make_tuple #include // int64_t, int*_t #include // printf #include // map #include // queue, priority_queue #include // set #include // stack #include // deque #include // unordered_map #include // unordered_set #include // bitset #include // isupper, islower, isdigit, toupper, tolower #include using namespace std; typedef long long ll; typedef long double ld; typedef unsigned long long ull; typedef pair pair_ii; typedef pair pair_ll; #define rep(i , x , n) for(int (i) = (x); i < (n); i++) #define rrep(i , n , x) for(int (i) = (n); i >= (x); i--) const int mod = 1000000007; const int INF = 100100100; const double pi = 3.14159265358979; //vector ans; //set ans; //vector table(20010 , 0); //vector dp(n + 10 , 0); //vector> dp(n + 10 , vector(2 , 0)); ll gcd(ll a , ll b){if(a < b)swap(a , b);if(a % b == 0)return b;else return gcd(b , a % b);} ll lcm(ll a , ll b){return a / gcd(a , b) * b;} bool chmax(ll &a , ll &b){if(a < b){a = b;return true;}else{return false;}} bool chmin(ll &a , ll &b){if(a > b){a = b;return true;}else{return false;}} bool is_prime(ll n){ if(n == 2 || n == 3 || n == 5 || n == 7)return true; for(int i = 2; i * i <= n; i++){if(n % i == 0)return false;} return true; } void prime_fact(ll n){ vector ans;ll x = n; for(int i = 2; i * i <= n; i++){while(x % i == 0){ans.push_back(i);x /= i;}} if(x > 1)ans.push_back(x); } void divisor(ll n){ set ans; rep(i , 1 , sqrt(n) + 10){if(n % i == 0)ans.insert(i);if(i != (n / i))ans.insert(n / i);} } void solve(){ int n; cin >> n; vector a(n); rep(i , 0 , n)cin >> a[i]; sort(a.begin() , a.end()); rep(i , 0 , n){ cout << a[i]; if(i != n - 1)cout << " "; else cout << endl; } } int main(){ //cout << fixed << setprecision(20) << endl; cin.tie(0); ios::sync_with_stdio(false); //int t;cin >> t;for(int i = 0; i < t; i++) solve(); return 0; }