import Control.Applicative

sort3 :: [Int]->[Int]

sort3 [x, y]
  | x <= y    = [x, y] 
  | otherwise = [y, x] 

sort3 [x, y, z]
  | x <= yy    = [x, yy, zz]
  | x <= zz     = [yy, x, zz]
  | otherwise  = [yy, zz, x]
  where
    [yy, zz] = sort3 [y, z]


main = do
  [str0, str1, str2] <- words <$> getLine
  let a = read str0 :: Int
  let b = read str1 :: Int
  let c = read str2 :: Int

  let dst_list = sort3 [a, b, c] 

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