N, D = map(int, input().split()) X = list(map(int, input().split())) V = list(map(int, input().split())) S = sum(V) ans = D//S if D%S!=0: ans+=1 print(ans)