include

using namespace std;
int main()
{
int up,down,height;
double s;
cin>>up>>down>>height;
s=(up+down)*height/2.0;
printf("%.3lf",s);
return 0;

}