import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int H = scanner.nextInt(); int A = scanner.nextInt(); int D = scanner.nextInt(); if (A * 3 >= D * 2) { System.out.println(Math.ceil((double)H / A)); } else { double[] dp = new double[H + 1]; for (int i = 1; i <= H; i ++) { if (i <= A) { dp[i] = 1; } else { dp[i] = Math.min(dp[i - A] + 1, dp[Math.max(i - D, 0)] + 3.0 / 2); } } System.out.println(dp[H]); } } }