#include <bits/stdc++.h>
using namespace std;
long long n, x, y, cost[10000007];
void solve() {
  cin >> n >> x >> y;
  cost[1] = x;
  for (long long i = 2; i <= n; ++i)
    cost[i] = min(cost[i - 1] + x, cost[(i + 1) / 2] + y + (i % 2) * x);
  cout << cost[n];
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  solve();
  return 0;
}
