n,d = map(int,input().split()) x = [int(i) for i in input().split()] v = [int(i) for i in input().split()] spd = sum(v) print((d+spd-1)//spd)