object Main {

  def main(args: Array[String]): Unit = {
    import scala.io.StdIn._
    val a = readLine().toInt
    val b = readLine().toInt
    val h = readLine().toInt

    println((a + b) * h / 2)
  }

}