function Main(input) {
	input = input.trim().split("\n").map((a)=>Number(a));
  var A = input[0];
  var B = input[1];
  var H = input[2];
  console.log(H * (A + B) / 2);
}

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