module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    [a, b, c] <- sort . fmap read . words <$> getLine :: IO [Int]
    let ans = (c * 10 + b) + a
    print ans