#include <bits/stdc++.h>
using namespace std;
long long getGeneratorCost(int n, int x, int y) {
  vector<long long> dp(n + 1);
  dp[0] = 0;
  dp[1] = x;
  for (int i = 2; i <= n; ++i) {
    dp[i] = dp[i - 1] + x;
    if (i & 0x01) {
      dp[i] = min(dp[i], dp[(i + 1) / 2] + x + y);
    } else {
      dp[i] = min(dp[i], dp[i / 2] + y);
    }
  }
  return dp[n];
}
int main(void) {
  int n, x, y;
  cin >> n >> x >> y;
  cout << getGeneratorCost(n, x, y) << endl;
  return 0;
}
