#include #include using namespace std; using namespace atcoder; using ll = long long; using ld = long double; ll N, D, x[101010], v[101010], sum; int main() { cin >> N >> D; for (int i = 0; i < N; i++) cin >> x[i]; for (int i = 0; i < N; i++) { cin >> v[i]; sum += v[i]; } cout << (D + sum - 1) / sum << endl; }