N,D = map(int,input().split()) lsx = list(map(int,input().split())) lsv = list(map(int,input().split())) sumv = sum(lsv) print(-(-D//sumv))