#include using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; template using V=vector; template using VV=V>; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); V A(4),B(4); rep(i,4) cin>>A[i]; rep(i,4) cin>>B[i]; ll t; cin>>t; V> P(4); rep(i,4) P[i]={B[i],A[i]}; sort(ALL(P)); ll ans=0; rep(i,4){ if(P[i].first*P[i].second>t){ cout<