function Main(input){
  input = input.split('\n').map(num => Number(num));
  var a = input[0];
  var b = input[1];
  var h = input[2];

    var area = ((a + b) * h) / 2;


  console.log(area);


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