N,T=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))

import math

print(math.ceil(T/sum(B)))