import Text.Regex
import Data.List
main = do
  s <- getLine
  putStrLn $ aux s

aux :: String -> String
aux s = intercalate " " $ map show $ sort [a,b,c]
  where
    [a,b,c] = map (\x -> read x :: Int) $ splitRegex (mkRegex " +") s