import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val a = Integer.parseInt(scanner.nextLine())
    val b = Integer.parseInt(scanner.nextLine())
    val h = Integer.parseInt(scanner.nextLine())

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

    println(area)
}
