import           Data.Functor ((<$>))
import           Text.Printf  (printf)

sort :: [Int] -> [Int]
sort [] = []
sort [x] = [x]
sort (x:y:ys)
    | x > y = y : sort (x : ys)
    | otherwise = x : sort (y : ys)

main :: IO ()
main = do
    xs <- fmap read . words <$> getLine :: IO [Int]
    let [a, b, c] = sort . sort $ xs
    printf "%d %d %d\n" a b c

