// inputに入力データ全体が入る
function Main(input) {
    var a = input[0]-0;
    var b = input[1]-0;
    var h = input[2]-0;
    console.log((a+b)*h/2)
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n"));