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