#include using namespace std; #define FOR(i,l,r) for(int i = int(l);i < int(r);i++) template bool chmax(T& a,const T& b){ return a < b ? (a = b,true) : false; } template bool chmin(T& a,const T& b){ return b < a ? (a = b,true) : false; } typedef long long ll; ll N,C,V; const ll INF = 1e18; int main() { cin >> N >> C >> V; ll ans = INF; for(ll i = 1,j = 1;i <= N;i *= 2,j++){ ll x = max(0ll,N - (1 << (j - 1))); chmin(ans,j * C + (j - 1) * V + (x + (i - 1)) / i * V); } cout << ans << endl; return 0; }