#include <stdio.h> #include<iostream> #include <algorithm> #include<cstdio> using namespace std; int main() { int a[101]; int n; cin >> n; for (int i = 0; i < n; i++) { scanf("%d", &a[i]); } sort(a, a + n); for (int i = 0; i < n; i++) { printf("%d ", a[i]); } return 0; }