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