#include using namespace std; #define rep(i,n) for(int i = 0; i < (n);i++) #define sz(x) int(x.size()) typedef unsigned long long ll; typedef long double ld; typedef pair P; int main() { int n, d; cin >> n >> d; rep(i,n) { int x; cin >> x; } ll sum = 0; rep(i,n) { int v; cin >> v; sum += v; } cout << (d + sum - 1) / sum << endl; return 0; }