import Control.Applicative
import Control.Monad
import Data.List
import Data.Char
strToInt s = (read :: String -> Int) s

main :: IO ()
main = print . sum . take 2 . sort . map strToInt . words <$> getLine
