#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define error(args...) { string _s = #args; replace(_s.begin(), _s.end(), ',', ' '); stringstream _ss(_s); istream_iterator<string> _it(_ss); err(_it, args); }

void err(istream_iterator<string> it) {}
template<typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args)
{
    cerr << *it << " = " << a << endl;
    err(++it, args...);
}

int main()
{
    ll i,j;
    vector<ll> n(3);
    for(i=0;i<3;i++)
        cin>>n[i];
    vector<ll> sum(3);
    vector<vector<ll>> v(3);
    for(i=0;i<3;i++)
    {
        ll tot=0;
        for(j=0;j<n[i];j++)
        {
            ll tmp;
            cin>>tmp;
            v[i].push_back(tmp);
            tot+=tmp;
        }
        sum[i]=tot;
    }
    sort(sum.begin(),sum.end());
    ll ans1=sum[1]+sum[2]-sum[0];

    ll ans2;
    vector<ll> p;
    for(i=0;i<3;i++)
    {
        sort(v[i].begin(),v[i].end());
        p.push_back(v[i].front());
    }
    sort(p.begin(),p.end());
    ans2=sum[0]+sum[1]+sum[2]-2*(p[0]+p[1]);
    cout<<max(ans1,ans2)<<endl;
}
