#include using namespace std; #include #include int main() { int a, b, c; cin >>a>>b>>c; int count = (a-0)*c; for(int i=1; i<=a;i++){ int k=i; count = min(count,k*b+(a-k)*c); } cout << count; }