#include<bits/stdc++.h>
#define ll long long int
using namespace std;

void solve()
{
	ll n1,n2,n3,i,sum1=0,sum2=0,sum3=0,ans=0;
	cin>>n1>>n2>>n3;
	vector<int> v1(n1),v2(n2),v3(n3);
	for(i=0;i<n1;i++)
	{
		cin>>v1[i];
		sum1+=v1[i];
	}
	ans+=sum1;
	for(i=0;i<n2;i++)
	{
		cin>>v2[i];
		sum2+=v2[i];
	}
	ans+=sum2;
	sum2=min(sum1,sum2);
	for(i=0;i<n3;i++)
	{
		cin>>v3[i];
		sum3+=v3[i];
	}
	ans+=sum3;
	sum3=min(sum2,sum3);
	sort(v1.begin(),v1.end());
        sort(v2.begin(),v2.end());
        sort(v3.begin(),v3.end());
	
	sum1=min((ll)v1[0]+v2[0],(ll)v2[0]+v3[0]);
	sum1=min(sum1,(ll)v3[0]+v1[0]);
	sum1=min(sum3,sum1);
	ans-=(2*sum1);
	cout<<ans;
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);cout.tie(0);
    ll T;
    int i=1;
    T=1;
    while(T--)
    {
        solve();
        cout<<endl;
    }
}
