function Main(input) {
	var abh = input.split("\n").map(c => parseInt(c));
	var area = (abh[0] + abh[1]) * abh[2] / 2;
  	console.log(area);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
