#include using namespace std; int main() { int a, b, c, d, x; cin >> a >> b >> c >> d; if (d >= a+ a * c ) { cout << a << endl; } else { cout << 0 << endl; } return 0; }