n,d=map(int,input().split()) x=list(map(int,input().split())) v=list(map(int,input().split())) ans=d//sum(v) if d%sum(v)!=0: ans+=1 print(ans)