# frozen_string_literal: true

line = readline.split(' ').map(&:to_i)
(0..2).each do |i|
  (i..2).each do |j|
    next unless line[i] > line[j]

    tmp = line[i]
    line[i] = line[j]
    line[j] = tmp
  end
end
puts line.join(' ')

