import Control.Applicative
import Data.List
main = solve

solve = do
    n <- fmap (read :: String -> Int) . words <$> getLine
    let sorted = sort n
    putStrLn $ show (sorted !! 0) ++ " " ++ show (sorted !! 1) ++ " " ++ show (sorted !! 2)