#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int H,A,D; cin >> H >> A >> D; vector dp(H+100000); for(int i=H-1; i>=0; i--){ double now = min(dp.at(i+A)+1,dp.at(i+D)+1.5); dp.at(i) = now; } cout << fixed << setprecision(20) << dp.at(0) << endl; }