N, D = map(int, input().split()) x = list(map(int, input().split())) v = list(map(int, input().split())) ans = -(-D // sum(v)) print(ans)