import java.util.*; public class Main { public static void main (String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int c = sc.nextInt(); int v = sc.nextInt(); long[] dp = new long[n + 1]; int[] counts = new int[n + 1]; dp[1] = 0; counts[1] = 0; dp[2] = c + v; counts[2] = 1; for (int i = 3; i <= n; i++) { long aValue = dp[(i + 1) / 2] + c + v; int aCount = (i + 1) / 2; int left = 1; int right = i - 1; while (right - left > 1) { int m = (left + right) / 2; if (m + counts[m] >= i) { right = m; } else { left = m; } } long bValue = dp[right] + v; int bCount = counts[right]; if (aValue <= bValue) { dp[i] = aValue; counts[i] = aCount; } else { dp[i] = bValue; counts[i] = bCount; } } System.out.println(dp[n]); } }