#include<bits/stdc++.h>
using namespace std;
int main(){
    float S,a,b,h;
    cin>>a>>b>>h;
    S=(a+b)*h/2;
    printf("%.1f\n",S);
    return 0;
}
/**************************************************************
	Problem: 1329
	User: lihean
	Language: C++
	Result: Accepted
	Time:9 ms
	Memory:2072 kb
****************************************************************/