#include using namespace std; int main() { int p,d,m,s,c=0; cin>>p>>d>>m>>s; while(s-p>=0) { s-=p; c++; p=max(p-d,m); } cout<