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