n,d = map(int,input().split()) x = list(map(int,input().split())) v = list(map(int,input().split())) sv = sum(v) if d%sv==0: print(d//sv) else: print(d//sv+1)