#include #define rep(i,n) for (int i=0; i < (int)(n); i++) #define all(c) c.begin(), c.end() using namespace std; typedef long long ll; typedef long double ld; using vi = vector; using vvi = vector; using vl = vector; using vvl = vector; int main() { ios::sync_with_stdio(0); cin.tie(0); //入出力高速化 //超絶場合分け ll R,P,Q; cin>>R>>P>>Q; ll A,B,C,D; cin>>A>>B>>C>>D; //A>=B>=C に並び替え if(B "<= 1) { ll num = min(C, R/P); if(num == 0) break; ans += num; A -= num; B -= num; C -= num; R -= P * num; print(4); } } cout<