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