#include<cstdio>
#include<algorithm>
#define int long long
using namespace std;
int n1,n2,n3,x,a[4],min1,min2,min3,sum1,sum2,sum3,sum,ans1,ans2;
signed main(){
	min1=min2=min3=1e9;
	scanf("%lld%lld%lld",&n1,&n2,&n3);
	for(int i=1;i<=n1;i++)scanf("%lld",&x),min1=min(min1,x),sum1+=x;
	for(int i=1;i<=n2;i++)scanf("%lld",&x),min2=min(min2,x),sum2+=x;
	for(int i=1;i<=n3;i++)scanf("%lld",&x),min3=min(min3,x),sum3+=x;
	ans1=min(sum1,min(sum2,sum3));
	sum=sum1+sum2+sum3;
	a[1]=min1,a[2]=min2,a[3]=min3;
	sort(a+1,a+1+3);
	ans2=a[1]+a[2];
	printf("%lld",sum-2*min(ans1,ans2));
	return 0;
}