#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, x, y;
  cin >> n >> x >> y;
  long long i;
  vector<long long> arr(n + 1, 0);
  arr[0] = 0;
  arr[1] = x;
  for (i = 2; i <= n; i++) {
    if (i % 2 != 0)
      arr[i] = min(arr[i - 1] + x, arr[i / 2 + 1] + y + x);
    else
      arr[i] = min(arr[i - 1] + x, arr[i / 2] + y);
  }
  cout << arr[n] << endl;
}
