import math N, D = map(int, input().split()) x = list(map(int, input().split())) v = list(map(int, input().split())) v_sum = sum(v) ans = math.ceil(D / v_sum) print(ans)