p, d, m, s = map(x -> parse(Int, x), split(readline())) wyn = 0 while s >= p s -= p wyn += 1 p = max(m, p - d) end println(wyn)