#include #include #include #include #include #include #include #include #include using namespace std; int main(){ cin.tie(0); ios::sync_with_stdio(false); int a,b,c,d; cin >> a >> b >> c >> d; int ans=0; int eat=0; while(1){ a--; b-=c; if(ans==0 && b<0){ cout << ans << endl; return 0; } ans++; eat+=(1+c); if(eat>=d||a==0||b<=0){ cout << ans << endl; break; } } return 0; }