#include<bits/stdc++.h>
using namespace std;
int main(){
float a,b,h;
cin>>a>>b>>h;
printf("%f",(a+b)*h);
}
/**************************************************************
Problem: 1329
User: tonghuatao
Language: C++
Result: Wrong Answer
****************************************************************/