str=gets.chomp
num=Array.new
number=str.split
for i in 0..2 do
  num[i]=number[i].to_i
end
for j in 0..10000 do
  if j==num[0] then
    print "#{j} "
  end
  if j==num[1] then
    print "#{j} "
  end
  if j==num[2] then
    print "#{j} "
  end
end