void main() {
	auto ip = readAs!(int[]), X = ip[0], Y = ip[1], A = ip[2], B = ip[3], C = ip[4];
	auto p = readAs!(int[]);
	auto q = readAs!(int[]);
	auto r = readAs!(int[]);
	p.sort!"a > b"(); q.sort!"a > b"(); r.sort!"a > b"();
	alias Pair = Tuple!(string, "kind", int, "value");
	Pair[] arr;
	foreach(i; p) arr ~= Pair("p", i);
	foreach(i; q) arr ~= Pair("q", i);
	foreach(i; r) arr ~= Pair("r", i);
	arr.sort!((a, b) => a.value > b.value);
	debug arr.each!writeln;
	ulong res;
	while(X > 0 || Y > 0) {
		debug writefln("%d %d", X , Y);
		auto pa = arr.front;
		arr.popFront();
		switch(pa.kind) {
			case "p":
				if(X > 0) {
					res += pa.value;
					X--;
					p.popFront;
				}
				break;
			case "q":
				if(Y > 0) {
					res += pa.value;
					Y--;
					q.popFront;
				}
				break;
			case "r":
				ulong a = 0, b = 0;
				if(p.length > 0) a = p[0];
				if(q.length > 0) b = q[0];

				bool pok = (X > 0 && a < pa.value);
				bool qok = (Y > 0 && b < pa.value);
				debug writefln("%s %s", pok, qok);
				if(a > b) {
					if(qok) {
						Y--;
						res += pa.value;
						if(q.length > 0) q.popFront;
					}
					else if(pok) {
						X--;
						res += pa.value;
						if(p.length > 0) p.popFront;
					}
				} else {
					if(pok) {
						X--;
						res += pa.value;
						if(p.length > 0) p.popFront;
					}
					else if(qok) {
						Y--;
						res += pa.value;
						if(q.length > 0) q.popFront;
					}
				}
				break;
			default: break;
		}
	}
	res.writeln;
}

// ===================================

import std.stdio;
import std.string;
import std.functional;
import std.algorithm;
import std.range;
import std.traits;
import std.math;
import std.container;
import std.bigint;
import std.numeric;
import std.conv;
import std.typecons;
import std.uni;
import std.ascii;
import std.bitmanip;
import core.bitop;

T readAs(T)() if (isBasicType!T) {
	return readln.chomp.to!T;
}
T readAs(T)() if (isArray!T) {
	return readln.split.to!T;
}

T[][] readMatrix(T)(uint height, uint width) if (!isSomeChar!T) {
	auto res = new T[][](height, width);
	foreach(i; 0..height) {
		res[i] = readAs!(T[]);
	}
	return res;
}

T[][] readMatrix(T)(uint height, uint width) if (isSomeChar!T) {
	auto res = new T[][](height, width);
	foreach(i; 0..height) {
		auto s = rs;
		foreach(j; 0..width) res[i][j] = s[j].to!T;
	}
	return res;
}

int ri() {
	return readAs!int;
}

double rd() {
	return readAs!double;
}

string rs() {
	return readln.chomp;
}