import Control.Applicative

sort [] = []
sort (x:xs) = 
    sort lt ++ [x] ++ sort gt
    where lt = [y|y<-xs,y<x]
          gt = [y|y<-xs,y>=x]

sstr [x] = show x
sstr (x:xs) = show x ++ " " ++ sstr xs
main = do
    ss <- words <$> getLine
    let a = take 3 [read x::Int| x<-ss]
    putStrLn $ sstr[x|x<-sort a]