a, b, c = gets.chomp.split("\s")
a, b, c = a.to_i, b.to_i, c.to_i

if a > b
 n = a
 a = b
 b = n
end

if a > c
	print(c, " ", a, " ", b, "\s")
elsif b > c
	print(a, " ", c, " ", b, "\s")
else
	print(a, " ", b, " ", c, "\s")
end