n, d = map(int, input().split()) x_s = list(map(int, input().split())) v_s = list(map(int, input().split())) V = sum(v_s) print((d - 1) // V + 1)