#include<iostream>
#include <iomanip>
using namespace std;
float func(float a,float b,float c){
float q=(a+b)*c/2;
return q;
}
int main(){ //3 5 6 ->24.000
float a; //7 9 10 ->80.000
float b; //10 15 6 ->75.000
float c; //11 19 7 ->105.000
cin >>a >>b >>c ; //20 50 40 ->14000.000
float x=func(a,b,c);
cout<<fixed<<setprecision(3);
cout <<x;
}
#include <iomanip>
using namespace std;
float func(float a,float b,float c){
float q=(a+b)*c/2;
return q;
}
int main(){ //3 5 6 ->24.000
float a; //7 9 10 ->80.000
float b; //10 15 6 ->75.000
float c; //11 19 7 ->105.000
cin >>a >>b >>c ; //20 50 40 ->14000.000
float x=func(a,b,c);
cout<<fixed<<setprecision(3);
cout <<x;
}