solver::Int->Int -> Int -> Int
solver a b h = div ((a+b)*h) 2

main::IO()
main =do
  ac<-getLine
  let a= read ac::Int
  bc<-getLine
  let b= read bc::Int
  hc<-getLine
  let h= read hc::Int
  print (solver a b h)
