N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = list(map(int, input().split()))
   
if N == 1:
    print(sum(B))
else:
    try:
        k = A[-1]
        print(sum(B)+sum(C)-C[k-1])
    except(IndexError):
        print(sum(B)+sum(C))