#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,h;
    float S;
    cin>>a>>b>>h;
    S=(a+b)*h/2.0;
	printf("%.1f",S);
}

/**************************************************************
	Problem: 1329
	User: shiruoxi
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/