import std.stdio, std.string, std.conv, std.range, std.algorithm;

void main() {
  auto a = readln.chomp.to!int;
  auto b = readln.chomp.to!int;
  auto h = readln.chomp.to!int;

  ((a + b) * h / 2).writeln;
}
