import java.util.Scanner

object Main {
  val sc = new Scanner(System.in)
  def main(args: Array[String]): Unit = {
    val a = sc.nextInt
    val b = sc.nextInt
    val h = sc.nextInt

    val res = (a + b) * h / 2


    println(res)
  }
}
