import Control.Applicative
import Control.Monad
import Data.List
import Data.Array
import Data.Char

main = do
  [a, b, c] <- reverse . sort . map (read::String -> Int) . words <$> getLine
  print $ 10 * a + b + c