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