#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>h>>a>>d; vector dp(h+1,0); for(Int i=1;i<=h;i++){ Int x=max(0LL,i-a); Int y=max(0LL,i-d); dp[i]=min(dp[x]+1.0,dp[y]+1.5); } cout<