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