#include <bits/stdc++.h>
using namespace std;
const long long oo = 1e7;
const double EPS = (1e-7);
int dcmp(double x, double y) { return fabs(x - y) <= EPS ? 0 : x < y ? -1 : 1; }
int n, x, y;
long long dp[oo];
int main() {
  cin >> n >> x >> y;
  dp[0] = x;
  for (int i = 1; i < n; i++) {
    if ((i + 1) % 2 == 0) {
      dp[i] = min(dp[i - 1] + x, dp[(i) / 2] + y);
    } else {
      dp[i] = min(dp[i - 1] + x, dp[(i) / 2] + y + x);
    }
  }
  cout << dp[n - 1] << endl;
}
