N, D = map(int, input().split()) X = list(map(int, input().split())) V = list(map(int, input().split())) print((D + sum(V) - 1) // sum(V))