#include using namespace std; typedef long long LL; int main() { int n, c, v; cin >> n >> c >> v; int m = 0, p = 1; while (n > p) { m++; p *= 2; } int mn = 1000000000; p = 1; for (int i = 1; i <= m; i++) { int cost = (c + v) * i + v * ((n - p - 1) / p); mn = min(mn, cost); p *= 2; } cout << mn << endl; return 0; }