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