#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
void tracer(istream_iterator<string> it) {}
template <typename T, typename... Args>
void tracer(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << " | ";
  tracer(++it, args...);
}
template <typename T, typename U>
static inline void amin(T &x, U y) {
  if (y < x) x = y;
}
template <typename T, typename U>
static inline void amax(T &x, U y) {
  if (x < y) x = y;
}
const long long MOD = 1e9 + 7;
const double err = 1e-10;
const int N = 1e7 + 5;
vector<long long> dp(N, 2e18);
void solve() {
  int n, x, y;
  cin >> n >> x >> y;
  dp[0] = 0;
  dp[1] = x;
  for (int i = 2; i < n + 1; i++) {
    dp[i] = dp[i - 1] + x;
    if (i & 1)
      amin(dp[i], dp[(i + 1) / 2] + x + y);
    else
      amin(dp[i], dp[i / 2] + y);
  }
  cout << dp[n] << "\n";
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int T = 1;
  while (T--) solve();
  return 0;
}
