#include <iostream>
using namespace std;
int main()
{
    int n , arr[n];
    cin >> n;

    for ( int i = 0 ; i < n ; i ++ )
    {
        cin >> arr[i];
    }

    for ( int b = 0 ; b < n - 1 ; b ++ )    // 3 2 1 0 => 2 1 0 3 => 1 0 2 3 => 0 1 2 3
    {

    for ( int i = 0 ; i < n - 1 ; i ++ )
    {
        if ( arr[i] > arr[i + 1])
        {
           swap ( arr[i] , arr[i + 1]);
        }
    }

    }

    for ( int i = 0 ; i < n ; i ++ )
    {
        cout << arr[i];
    }
    return 0;
}