#include using namespace std; using ll=long long; ll solve1(ll N,ll A,ll B){ if(N==2){ return min(A-2*B,-A); }else if(N%2){ return min(-A*(N-1)-B,-B*N+A*(N-1)); }else{ return min({-A*(N-1),-B*N+A*(N-1),-A*(N-3)-2*B}); } } int main(){ ll N,A,B; cin>>N>>A>>B; cout<