//******************************************
//  Author : Nessipbek Mynbayev         
//  Created On : Sat Jan 09 2021 01:25:40
//  File : ThreeBags.cpp
//******************************************

#include<bits/stdc++.h>
using namespace std;

typedef unsigned long long ull;
typedef long long ll;

int main()
{
	ios_base::sync_with_stdio(false); 
	cin.tie(nullptr);

    ll n1, n2, n3; cin >> n1 >> n2 >> n3;

    ll a[n1];
    ll b[n2];
    ll c[n3];

    ll suma = 0;
    for (int i=0; i<n1; i++)
    {
        cin >> a[i];
        suma += a[i];
    }

    ll sumb = 0;
    for (int i=0; i<n2; i++)
    {
        cin >> b[i];
        sumb += b[i];
    }

    ll sumc = 0;
    for (int i=0; i<n3; i++)
    {
        cin >> c[i];
        sumc += c[i];
    }

    sort(a,a+n1);
    sort(b,b+n2);
    sort(c,c+n3);

    ll minimals[3] = {a[0],b[0],c[0]};
    ll sums[3] = {suma, sumb, sumc};

    sort(minimals, minimals+3);
    sort(sums,sums+3);

    ll result1 =  suma + sumb + sumc - 2*(minimals[0] + minimals[1]);
    ll result2 = sums[1] + sums[2] - sums[0];

    cout << max(result1, result2) << endl;

    return 0;
}