#include using namespace std; int H, A, D; double E(int x) { if (x >= H) return 0.0; double res; res = min(E(x + A) + 1.0, E(x + D) + 3.0 / 2.0); return res; } void Solve() { cout << E(0) << endl; } int main() { cin >> H >> A >> D; Solve(); return 0; }