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