#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
const int N = 1e7 + 5;
long long dp[N];
int main() {
  long long n, x, y;
  cin >> 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], y + dp[i / 2]);
    else
      dp[i] = min(dp[i], dp[(i + 1) / 2] + x + y);
  }
  cout << dp[n] << endl;
  return 0;
}
