size = gets.chomp.to_i
input_values = gets.chomp.split

for i in 0...size
   for j in 0...(size-(1+i))
       if input_values[j] > input_values[j + 1]
            tmp = input_values[j+1]
            input_values[j+1] = input_values[j]
            input_values[j] = tmp
        end
    end
end
for i in 0...input_values.length
    printf("%d ",input_values[i])
end
print("\n")