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