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