import sequtils, strutils

let
  n = parseInt stdin.readLine
var
  a = stdin.readLine.split.map parseInt

for i in 0 ..< (2 * n - 3):
  for p in 0 ..< (i.pred div 2):
    for q in p.succ ..< n:
      if (p + q) > i: break
      if a[p] > a[q]: swap(a[p], a[q])

echo a.join " "