a, b, c  = gets.split.map(&:to_i)

case a <=> b
when -1
  x1 = a
  x2 = b
when 0, 1
  x1 = b
  x2 = a
end

case x1 <=> c
when -1
  ans1 = x1
  y2 = c
when 0, 1
  ans1 = c
  y2 = x1
end

case x2 <=> y2
when -1
  ans2 = x2
  ans3 = y2
when 0, 1
  ans2 = y2
  ans3 = x2
end

puts "#{ans1} #{ans2} #{ans3}"