H, A, D = map(int, input().split()) ceil = lambda a, b: (a + b - 1) // b N = ceil(H, A) print(min(ceil(max(0, H - n * A), D) * 1.5 + n for n in range(N + 1)))