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