p,d,m,s=list(map(int,input().split())) ans=0 while(s>=0): if(s-p>=0): ans+=1 s-=p p=max(p-d,m) else: break print(ans)