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