n,d=map(int,input().split()) x=list(map(int,input().split())) v=list(map(int,input().split())) V=sum(v) ans=(d+v-1)//v print(ans)