#include using namespace std; #define int long long int dp[100001]; //i個のAを作るための最小コスト signed main(){ cin.tie(0); ios::sync_with_stdio(false); int n,c,v; cin >> n >> c >> v; fill(dp,dp+100001,1<<30); dp[1] = 0; for(int i = 1; i <= n; i++){ int cost = dp[i] + c + v; for(int j = i*2; j < 100000; j+=i){ dp[j] = min(dp[j],cost); cost += v; } } int ans = 1<<30; for(int i = n; i < 100000; i++){ ans = min(ans,dp[i]); } cout << ans << endl; return 0; }