#include #include #include #include using namespace std; long long n, c, v; long long f(int len, int clip) { if (len >= n) return 0; if (clip == 0) return f(len, len) + c; return min(f(len + len, len) + c + v, f(len + clip, clip) + v); } int main() { cin >> n >> c >> v; cout << f(1, 0) << endl; }