n,d = map(int,input().split()) x = list(map(int,input().split())) v = list(map(int,input().split())) s = sum(v) from math import ceil print(ceil(d/s))