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