#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n1,n2,n3,x,ans,sum[5],minn[5];
int main()
{
	minn[1]=minn[2]=minn[3]=0x3f3f3f3f;
	scanf("%lld%lld%lld",&n1,&n2,&n3);
	for(int i=1;i<=n1;i++)scanf("%lld",&x),sum[1]+=x,minn[1]=min(minn[1],x);
	for(int i=1;i<=n2;i++)scanf("%lld",&x),sum[2]+=x,minn[2]=min(minn[2],x);
	for(int i=1;i<=n3;i++)scanf("%lld",&x),sum[3]+=x,minn[3]=min(minn[3],x);
	ll sumup=sum[1]+sum[2]+sum[3],minnup=minn[1]+minn[2]+minn[3];
	//����iΪ������
	for(int i=1;i<=3;i++)ans=max(ans,sumup-sum[i]*2);
	//������i�����������СΪ������ 
	for(int i=1;i<=3;i++)ans=max(ans,sumup-(minnup-minn[i])*2);
	printf("%lld\n",ans);
	return 0;
}
