p,d,m,s = map(int,raw_input().split()) ans = 0 while s>0: s -= p p -= d if p<=m: p = m if s<0: break ans += 1 print ans