//ethan_h #include using namespace std; #define ll long long /*void test(){ int n;cin>>n; string s;cin>>s; vectora(n); for(int i=0;i>a[i];} } */ int main(){ ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int t,a,b;cin>>t>>a>>b; int mi=1000000009; for(int i=0;i<=t;i++){ mi=min(mi,i*a + (t-i)*b); } cout<