inputs = gets.chomp.split(nil)

sortedInputs = inputs.sort {|a, b|
  ia = a.to_i
  ib = b.to_i
  ia <=> ib
}

resultStr = ""
for input in sortedInputs
  resultStr += input + " "
end

puts resultStr.strip