#include using namespace std; using ll = long long; using ul = unsigned long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll n,d; cin >> n >> d; ll x; for (long i = 0; i < n; ++i) cin >> x; ll dd{ 0 }; for (long i = 0; i < n; ++i) { cin >> x; dd += x; } ll res = (d + dd -1) / dd; cout << res << "\n"; return 0; }