#include <bits/stdc++.h>
using namespace std;
int n, x, y;
long long dp[10000007];
int main() {
  scanf("%d%d%d", &n, &x, &y);
  dp[0] = 0;
  for (int i = 1; i <= n; i++) {
    if (i & 1)
      dp[i] = min(dp[i - 1] + x, dp[(i + 1) / 2] + y + x);
    else
      dp[i] = min(dp[i - 1] + x, dp[i / 2] + y);
  }
  printf("%I64d\n", dp[n]);
  return 0;
}
