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