main :: IO ()
main = do
    str <- getLine
    let inputs = [read word :: Int | word <- words str]
    let a = head inputs
    let b = head $ tail inputs
    let c = head $ tail $ tail inputs

    putStrLn $ unwords $ map show $ order a b c

order :: Int -> Int -> Int -> [Int]
order a b c
    | a <= b = if b <= c then [a, b, c]
                else if c <= a then [c, a, b]
                  else [a, c, b]
    | otherwise = if a <= c then [b, a, c]
                    else if c <= b then [c, b, a]
                      else [b, c ,a]