#include <bits/stdc++.h>
using namespace std;
long long d[10000001];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  long long x, y;
  cin >> n >> x >> y;
  d[1] = x;
  for (int i = 2; i <= n; i++) {
    if (i % 2 == 0) {
      d[i] = min(x + d[i - 1], d[i / 2] + y);
      continue;
    }
    d[i] = min({x + d[i - 1], d[(i + 1) / 2] + y + x, d[(i - 1) / 2] + y + x});
  }
  cout << d[n];
  return 0;
}
