import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] first = br.readLine().split(" ", 2); int c = Integer.parseInt(first[0]); int v = Integer.parseInt(first[1]); int[] dp = new int[n * 2]; Arrays.fill(dp, Integer.MAX_VALUE); dp[1] = 0; for (int i = 1; i < n; i++) { int cur = i; int cost = dp[i] + c; while (cur < n) { cur += i; cost += v; dp[cur] = Math.min(dp[cur], cost); } } int min = Integer.MAX_VALUE; for (int i = n; i < dp.length; i++) { min = Math.min(min, dp[i]); } System.out.println(min); } }