a,b,c,d = map(int,input().split()) ans = 0 p = 0 for i in range(a+1) : if p + (c+1) > d : break else : p += c+1 ans += 1 print(ans)