#include using namespace std; int main(int argc, char* argv[]) { int A,B,C,D; cin>>A>>B>>C>>D; int X=min((int)B/C, (int)D/(C+1)); cout<