#include <bits/stdc++.h>
using namespace std;
long long gcd(long long x, long long y) {
  if (x == 0) return y;
  return gcd(y % x, x);
}
long long powmod(long long x, long long y, long long m) {
  if (y == 0) return 1;
  long long p = powmod(x, y / 2, m) % m;
  p = (p * p) % m;
  return (y % 2 == 0) ? p : (x * p) % m;
}
long long modif(long long x, long long m) { return (powmod(x, m - 2, m)); }
bool fa(vector<long long> &x, vector<long long> &y) { return x[0] < y[0]; }
bool fa1(vector<long long> &x, vector<long long> &y) { return x[1] < y[1]; }
bool f1(pair<long long, long long> &x, pair<long long, long long> &y) {
  return x.second > y.second;
}
bool f2(pair<long long, long long> &x, pair<long long, long long> &y) {
  return x.first > y.first;
}
bool f3(long long &x, long long &y) { return x > y; }
const long long maxn = 2e5 + 2;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, x, y;
  cin >> n >> x >> y;
  long long c = 1;
  long long dp[n + 1];
  dp[1] = x;
  for (long long i = 2; i <= n; i++) {
    if (i % 2 == 0) {
      dp[i] = min(dp[i - 1] + x, dp[i / 2] + y);
    } else {
      long long h = min(dp[i / 2], dp[(i + 1) / 2]);
      dp[i] = min(dp[i - 1] + x, h + y + x);
    }
  }
  cout << dp[n];
  return 0;
}
