using namespace std; #include int main(){ int d; int a,b; cin >> d >> a >> b; int x = d / 2; cout << a*x + b*x << endl; }