#include using namespace std; #define rep(i,n) for(i = 0;i < n;++i) #define all(v) v.begin(), v.end() using ll = long long; int main() { ll i,j; ll n,d; cin >> n >> d; ll sum = 0; for(i = 0;i < n;++i){ ll x; cin >> x; } rep(i,n){ ll v; cin >> v; sum += v; } cout << (d-1)/sum+1 << endl; return 0; }