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