import std.algorithm;
import std.array;
import std.container;
import std.conv;
import std.math;
import std.numeric;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

enum Color { red, green, colorless }
alias S = Tuple!(long, "value", Color, "color");

long calc(int x, int y, long[] a, long[] b, long[] c) {
    a.sort!"a > b";
    b.sort!"a > b";
    c.sort!"a > b";

    S[] s;
    foreach (e; a.take(x).map!(e => S(e, Color.red))) s ~= e;
    foreach (e; b.take(y).map!(e => S(e, Color.green))) s ~= e;
    foreach (e; c.map!(e => S(e, Color.colorless))) s ~= e;
    s.sort!"a.value > b.value";

    long ans = 0;
    int red = 0;
    int green = 0;
    int colorless = 0;
    foreach (e; s) {
        if (red + green + colorless == x + y) break;

        ans += e.value;
        final switch (e.color) {
            case Color.red:
                if (red < x) red++;
                break;
            case Color.green:
                if (green < y) green++;
                break;
            case Color.colorless:
                colorless++;
                break;
        }
    }
    return ans;
}

void main() {
    int x, y, A, B, C; scan(x, y, A, B, C);
    auto a = reads!long;
    auto b = reads!long;
    auto c = reads!long;
    writeln(calc(x, y, a, b, c));
}

void scan(T...)(ref T a) {
    string[] ss = readln.split;
    foreach (i, t; T) a[i] = ss[i].to!t;
}
T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;
