module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = mapM_ putStrLn=<<map (unwords.map show.sort.map (read::String->Int).words).init.lines<$>getContents