#include using namespace std; using ll = long long; int main() { ll n,d; cin >> n >> d; vector x(n),v(n); for(auto &i:x)cin >> i; for(auto &i:v)cin >> i; ll sum = 0; for(auto &i:v) { sum += i; } cout << (d+sum-1)/sum<