#include <bits/stdc++.h>
using namespace std;
ifstream fin("input.txt");
using namespace std;
template <typename T>
vector<T> read_v(int n) {
  vector<T> v(n);
  for (int i = 0; i < n; i++) fin >> v[i];
  return v;
}
bool decrease(int a, int b) { return (a > b); }
struct pr {
  int f, s;
};
bool comp(pr a, pr b) { return (a.f < b.f); }
long long n, x, y, i, dp[10000007];
int main() {
  cin >> n >> x >> y;
  for (dp[1] = x, i = 2; i <= n; i++)
    dp[i] = min(dp[i - 1] + x, dp[(i + 1) / 2] + y + (i % 2) * x);
  cout << dp[n];
  return 0;
}
