n,d=map(int,input().split()) x=list(map(int,input().split())) s=list(map(int,input().split())) N=sum(s) print((d+N-1)//N)