calc :: Int -> Int -> Int -> Int
calc a b c
  | a <= c && b <= c = a + b + c * 10
  | b <= a && c <= a = 10 * a + b + c
  | c <= b && a <= b = a + 10 * b + c

main = do
  [a,b,c] <- map read . words <$> getLine
  print $ calc a b c
