num[2]=number[2].to_i
max=0;min=100;mid=0
maxnum=0;minnum=0
for i in [0,1,2] do
  if num[i]<min then
    min=num[i]
    minnum=i
  end
  if num[i]>=max then
    max=num[i]
    maxnum=i
  end
end
for j in 0..2 do
  if j!=maxnum && j!=minnum then
    mid=num[j]
  end
end

puts "#{min} #{mid} #{max}"
  