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