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