#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long x, y;
  cin >> x >> y;
  vector<long long> dp(n + 10, 1000000000LL * 1000000000LL);
  dp[0] = 0LL;
  for (int i = 1; i <= n; i++) {
    dp[i] = min(dp[i - 1] + x, dp[(i + 1) / 2] + y + (i % 2) * x);
  }
  cout << dp[n] << endl;
  return 0;
}
