n,d=map(int, input().split()) x=[int(i) for i in input().split()] v=[int(i) for i in input().split()] k = sum(v) print(0--d//k)