#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int arr[n];
for ( int i = 0 ; i < n ; i ++ )
{
cin >> arr[i];
}
int p = 1;
for ( int b = 0 ; b < n ; b ++ )
{
for ( int c = 0 ; c < p ; c ++ )
{
if ( arr[c - 1] > arr[c] )
{
swap ( arr[c - 1] , arr[c] );
}
}
p ++;
}
for ( int i = 0 ; i < n ; i ++ )
{
cout << arr[i] <<" ";
}
return 0;
}