N, M = map(int, input().split()) A = list(map(int, input().split())) B = list(map(int, input().split())) C = list(map(int, input().split())) ans1 = 0 p = A[0] for i in range(N - 1): if A[i + 1] - p != B[i % M]: ans1 += C[i + 1] p = p + B[i % M] else: p = A[i + 1] ans2 = 0 p = A[-1] for i in range(N - 2, -1, -1): if p - A[i] != B[i % M]: ans2 += C[i] p = p - B[i % M] else: p = A[i] print(min(ans1, ans2))