import Data.Functor ((<$>))

main = do
    [a, b, c] <- map read . words <$> getLine
    let x = a :: Int
    let ord = case (a < b, b < c, c < a) of
          (True, True, _) -> [a, b, c]
          (True, False, True) -> [c, a, b]
          (True, False, False) -> [a, c, b]
          (False, True, True) -> [b, c, a]
          (False, True, False) -> [b, a, c]
          (False, False, _) -> [c, b, a]
    putStrLn $ unwords $ map show ord

