a,b,c,d=map(int,input().split()) count=0 ans=0 while count<=d: count+=c+1 ans+=1 print(min(a,ans-1))