#include <bits/stdc++.h>
using namespace std;
int main(){
	
	
	
	int n,i,x;
	cin>>n>>i>>x;
	
			
    
	cout<<(x+i)*n/2<<' ';
   return 0;
}