import Data.List

main = do
	line <- getLine
	putStrLn $ unwords . map show . sort . map (read :: (String -> Int)) . words $ line


--main = do
--	line <- getLine
--	let a = read . head . words $ line :: Int
--	let b = read . last . words $ line :: Int
--	putStrLn (show (a * b) ++ " " ++ show (a * 2 + b * 2))