import Data.List
import Data.Functor

main :: IO ()
main = do
    a <- read <$> getLine :: IO Int
    b <- read <$> getLine :: IO Int
    h <- read <$> getLine :: IO Int
    putStrLn $ show $ div ((a+b)*h) 2

