import Control.Applicative

qsort :: [Int]->[Int]

qsort [] = []

qsort (p:xs) = qsort x_smaller ++ [p] ++ qsort x_larger
  where x_smaller = [x | x <- xs, x < p]
        x_larger = [x | x <- xs, x >= p]

main = do
  [s0, s1, s2] <- words <$> getLine
  let x = read s0 :: Int
  let y = read s1 :: Int
  let z = read s2 :: Int

  let dst_list = qsort [x, y, z]

  putStr $ show $ dst_list !! 0
  putChar ' '
  putStr $ show $ dst_list !! 1
  putChar ' '
  putStr $ show $ dst_list !! 2
  putChar '\n'