import Text.Printf
import Data.List
import Control.Applicative

main = do
  ss <- (map stoi . words) <$> getLine
  let [a, b, c] = sort ss
  printf "%d %d %d\n" a b c

stoi :: String -> Int
stoi str = read str :: Int