n,D = map(int,input().split()) X = list(map(int,input().split())) V = list(map(int,input().split())) SV = sum(V) print(-(-D//SV))