#include using namespace std; #define ll long long #define ul unsigned long long #define pb push_back #define ss second #define ff first #define fr(m) for(int i=0; i=0; i--) #define nl '\n' #define yes cout<<"YES"<>n>>k>>l>>c>>d>>p>>nll>>np; int drink=(k*l)/nll; int slices=c*d; int salt=p/np; int toast=min({drink,slices,salt}); cout<> TC; while (TC--) solve(); }