#include using namespace std; typedef long long ll; #define pb push_back #define fi first #define se second typedef pair P; #define Mod 1000000007 using VP = vector

; using VVP = vector; using VI = vector; using VVI = vector; using VVVI = vector; int main(){ ll i,j; ll a,b,c,d; cin>>a>>b>>c>>d; ll ans=0; while(b>=c){ b-=c; d-=(c+1); if(d>=0) ans++; } cout<