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