f=lambda:map(int,input().split()) N,D=f() x=f() v=sum(f()) print((D+v-1)//v)