N, M, W = map(int, input().split()) A = sorted(list(map(int, input().split())), reverse=True) B = list(map(int, input().split())) C = list(map(int, input().split())) cum = [0] for i in range(N): cum.append(cum[-1]+A[i]) ans = 0 for i in range(1<