function Main(input) {
    input = input.split("\n");
    var line = input[0].split(" ");
    var top = parseInt(line)
    var bottom = parseInt(input[1])
    var height = parseInt(input[2])
    
    console.log((top+bottom)*height/2)
 
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));