n, d = map(int, input().split()) X = list(map(int, input().split())) V = list(map(int, input().split())) a = sum(V) import math print(math.ceil(d/a))