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