import math N, D = map(int, input().split()) x = [buf for buf in map(int, input().split())] v = [buf for buf in map(int, input().split())] print(math.ceil(D / sum(v)))