#include #define PI 3.14159265359 #define NIL -1 using namespace std; const int64_t MOD = 1e9 + 7; int main() { int64_t N, D; cin >> N >> D; vector x(N), v(N); int64_t sum = 0; for (int64_t i = 0; i < N; i++) { cin >> x.at(i); } for (int64_t i = 0; i < N; i++) { cin >> v.at(i); sum += v.at(i); } //cout << sum << endl; //cout << D << endl; double n = (double)D / sum; int64_t ans = ceil(n); cout << ans << endl; }