N,D=map(int,input().split()) x=list(map(int,input().split())) v=list(map(int,input().split())) v_sum=sum(v) print((D+v_sum-1)//v_sum)