#include<bits/stdc++.h>
using namespace std;
int main()
{
    double u,d,h,s;
    cin>>u>>d>>h;
    s=(u+d)*h/2;
    printf("%.3lf",s);
    return 0;
}