p,d,m,s = map(int,raw_input().split() ) cnt = 0; while (s-max(m,p)>=0) : cnt+=1 s-=max(m,p); p-=d; print cnt