import std.stdio;
import std.conv;
import std.algorithm;
import std.range;
import std.string;
import std.typecons;
import std.math;
import std.range;
void main()
{
    readln;
    auto a = readln().strip.split(" ").map!(to!int);
    auto b = new typeof(a[0])[10000];
    foreach (i; a)
    {
        b[i]++;
    }
    bool aaf = false;
    foreach (i, j; b)
    {
        foreach (k; iota(j))
        {
            write(aaf ? " " : "", i);
            aaf = true;
        }
    }
    writeln();
}
