#include "bits/stdc++.h" #define REP(i,n,N) for(ll i=(n); i<(N); i++) #define RREP(i,n,N) for(ll i=(N-1); i>=n; i--) #define CK(n,a,b) ((a)<=(n)&&(n)<(b)) #define ALL(v) (v).begin(),(v).end() #define p(s) cout<<(s)<> typedef long long int ll; using namespace std; const ll inf=1e18; ll N,C,V; int main(){ while(cin>>N>>C>>V) { ll ans = inf; ll cp=1; ll numC=1; REP(i,0,30){ ans= min(ans,C*numC+((N-1)/cp+numC-1)*V); p(ans); cp *= 2; numC++; } p(ans); } return 0; }