N,D,K=map(int,input().split()) A=list(map(int,input().split())) C=list(map(int,input().split())) if sum(C)