#define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(v) v.begin(), v.end() typedef long long ll; #include using namespace std; int main(){ ll n,d; cin>>n>>d; vector X(n),V(n); rep(i,n) cin>>X[i]; rep(i,n) cin>>V[i]; ll sum=0; rep(i,n) sum+=V[i]; int ans=(sum+d-1)/sum; cout<