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