data = gets.split(" ")
a = data[0].to_i
b = data[1].to_i
c = data[2].to_i
tmp = a

if (b < a)
  a = b
  b = tmp
end

if (c < b)
  tmp = b
  b = c
  c = tmp
end

if (b < a)
  tmp = a
  a = b
  b = tmp
end

puts "#{a} #{b} #{c}"