#include<bits/stdc++.h>
using namespace std;
int main()
{
double a,b,c;
cin>>a>>b>>c;
double d=(a+b)*c/2;
cout<<fixed<<setprecision(3)<<d<<endl;
}

#include<bits/stdc++.h>
using namespace std;
int main()
{
double a,b,c;
cin>>a>>b>>c;
double d=(a+b)*c/2;
cout<<fixed<<setprecision(3)<<d<<endl;
}