x = gets()
y = x.split()

a = y[0].to_i
b = y[1].to_i
c = y[2].to_i

if a <= b && a <= c
 min = a
elsif b <= a && b <= c
 min = b
else
 min = c
end

if b <= a &&  c <= a
 max = a
elsif a <= b && c <= b
 max = b
else
 max = c
end

if max == a && min == b
 cen = c
elsif max == b && min == a
 cen = c
elsif max == a && min ==c
 cen = b
elsif max == c && min ==a
 cen = b
else
 cen = a
end

puts "#{min} #{cen} #{max}" 
