import           Data.List

main :: IO ()
main = do
    [a, b, c] <- sort <$> readInts
    print $ solve a b c

solve :: Int -> Int -> Int -> Int
solve a b c = 10 * c + b + a

readInts :: IO [Int]
readInts = map read . words <$> getLine