let read_int_array n = Array.init n (fun _ -> Scanf.scanf " %d" (fun x -> x))

let x, y, a, b, c = Scanf.scanf "%d %d %d %d %d" (fun x y a b c -> x, y, a, b, c)

let p = read_int_array a
let q = read_int_array b
let r = read_int_array c

let cmp x y = y - x;;

Array.sort cmp p;
Array.sort cmp q;
Array.sort cmp r;

let rec f i (a, b, c) (ai, bi, ci) ret =
  if i = x + y then ret
  else if b <= a && c <= a then
    f (i+1) ((if ai = x-1 then -1 else p.(ai+1)), b, c) (ai+1, bi, ci) (ret + a)
  else if a <= b && c <= b then
    f (i+1) (a, (if bi = y-1 then -1 else q.(bi+1)), c) (ai, bi+1, ci) (ret + b)
  else
    f (i+1) (a, b, (if ci = c-1 then -1 else q.(ci+1))) (ai, b, ci+1) (ret + c)
in
print_int (f 0 (p.(0), q.(0), r.(0)) (0, 0, 0) 0)
