use std::cmp;
use std::collections::HashMap;
use std::collections::VecDeque;
use std::io::Read;
use std::usize::MAX;

macro_rules! input {(source = $s:expr, $($r:tt)*) => {let mut iter = $s.split_whitespace();let mut next = || { iter.next().unwrap() };input_inner!{next, $($r)*}};($($r:tt)*) => {let stdin = std::io::stdin();let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));let mut next = move || -> String{bytes.by_ref().map(|r|r.unwrap() as char).skip_while(|c|c.is_whitespace()).take_while(|c|!c.is_whitespace()).collect()};input_inner!{next, $($r)*}};}
macro_rules! input_inner {($next:expr) => {};($next:expr, ) => {};($next:expr, $var:ident : $t:tt $($r:tt)*) => {let $var = read_value!($next, $t);input_inner!{$next $($r)*}};}
macro_rules! read_value {($next:expr, ( $($t:tt),* )) => {( $(read_value!($next, $t)),* )};($next:expr, [ $t:tt ; $len:expr ]) => {(0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()};($next:expr, chars) => {read_value!($next, String).chars().collect::<Vec<char>>()};($next:expr, usize1) => {read_value!($next, usize) - 1};($next:expr, [ $t:tt ]) => {{let len = read_value!($next, usize);(0..len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()}};($next:expr, $t:ty) => {$next().parse::<$t>().expect("Parse error")};}

fn solve() {
    input! {
        x: usize,
        y: usize,
        a: usize,
        b: usize,
        c: usize,
        p: [usize;a],
        q: [usize;b],
        r: [usize;c],
    }

    let mut p = p;
    p.sort();
    p.reverse();

    let mut q = q;
    q.sort();
    q.reverse();

    let mut r = r;
    r.sort();
    r.reverse();

    let mut total = 0;

    // これが下限
    let mut colorless_index: i64 = -1;
    let mut red_index: i64 = -1;
    let mut green_index: i64 = -1;

    let mut count = 0;

    while colorless_index + red_index + green_index + 3 < (x + y) as i64 {
        let red = if red_index < (x - 1) as i64 {
            p[(red_index + 1) as usize]
        } else {
            0
        };
        let green = if green_index < (y - 1) as i64 {
            q[(green_index + 1) as usize]
        } else {
            0
        };
        let colorless = if colorless_index < (c - 1) as i64 {
            r[(colorless_index + 1) as usize]
        } else {
            0
        };
        if red >= green && red >= colorless && red_index + 1 < x as i64 {
            // 赤が採用
            red_index += 1;
            count += red;
        } else if green >= red && green >= colorless && green_index + 1 < y as i64 {
            // 緑が採用
            green_index += 1;
            count += green;
        } else {
            // 無色が採用
            colorless_index += 1;
            count += colorless;
        }
    }

    println!("{}", count);
}

fn main() {
    let thd = std::thread::Builder::new().stack_size(104_857_600);
    thd.spawn(|| solve()).unwrap().join().unwrap();

    /*
    // 入力を一括で読み込む場合
    let mut buf = String::new();
    std::io::stdin().read_to_string(&mut buf).unwrap();
    let mut input = buf.split_whitespace();

    // inputに対しnext()で読み込んでいく
    let q: usize = input.next().unwrap().parse().unwrap();
    */
}

const LARGE_PRIME: u64 = 1_000_000_007;

// @〜でsnippet


Measured memory_bytes: 10620