#include <bits/stdc++.h>
using namespace std;
const long vmax = 1e7 + 3;
const long long oo = 1e18;
long n, x, y;
long long f[vmax];
int main() {
  cin >> n >> x >> y;
  f[0] = 0;
  for (long i = 1; i <= n; i++)
    f[i] = min(f[i - 1] + x, f[(i + 1) / 2] + y + (i % 2) * x);
  cout << f[n] << endl;
}
