n,d=map(int,input().split()) x=[*map(int,input().split())] v=[*map(int,input().split())] t=0 for i in range(n): t+=v[i] ans=(d+t-1)//t print(ans)