H,A,D=map(int,input().split()) DP={0:0} for x in range(1,H+1): DP[x]=min(DP.get(x-A,0)+1,DP.get(x-D,0)+1.5) print(DP[H])