#include int main(void) { int a,b,c,d,i,min = 100; int coef[3]; scanf("%d%d%d%d",&a,&b,&c,&d); coef[0] = a; coef[1] = b/c; coef[2] = d/(1+c); for(i=0;i<3;i++){ if(coef[i] < min){ min = coef[i]; } } printf("%d\n",min); return 0; }