H, A, D = map(int, input().split()) INF = 10**18 ans = [0] * (H + 1) for i in range(1, H + 1): ans[i] = min(1.5 + ans[max(0, i - D)], 1 + ans[max(0, i - A)]) print(ans[H])