import scala.io.Source

object Main {

  def main(args: Array[String]) {
    val lines = Source.stdin.getLines.toList
    val a = lines(0).toInt
    val b = lines(1).toInt
    val h = lines(2).toInt
    println((a+b)*h/2)
  }

}
