($h,$a,$d)=glob<>;print+(sort{$a<=>$b}map{($==($-=$h-$a*$_)/$d+0.999)*1.5+$_}0..$h)[0]