h,a,d = map(int,input().split()) dp = [h]*(h+1) dp[0] = 0 for i in range(1,h+1): dp[i] = min(dp[max(0,i-d)]+1.5,dp[max(0,i-a)]+1) print(dp[-1])