import Data.List;main=interact$unlines.map sort.lines