n, d = map(int, input().split()) x = [int(a) for a in input().split()] v = [int(b) for b in input().split()] s = sum(v) ans = (d - 1) // s + 1 print(ans)