H,A,D=gets.split.map &:to_i p (0..H).map{|i|H>A*i ?(H-A*i+D-1)/D*1.5+i :i}.min