#!/usr/bin/env python3 import sys input = sys.stdin.readline INF = 10**9 h, a, d = map(int, input().split()) dp = [INF] * (h + 1) dp[0] = 0 for i in range(1, h+1): # normal dp[i] = min(dp[i], dp[max(i-a, 0)] + 1) # special dp[i] = min(dp[i], dp[max(i-d, 0)] + 1.5) print(dp[h])