#include<bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("avx2")
#pragma GCC optimaze("JARU SOSISONI")

using namespace std;

#define int long long
#define all(x) (x).begin(), (x).end()
#define fast cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
#define geom cout.setf(ios::fixed); cout.precision(15);
typedef long long ll;
typedef long double ld;

const int INF = 1e18 + 100;
const int MOD = 998244353;
const int N = 1e5;

signed main() {
#ifdef hedgehog
    freopen("A.in", "r", stdin);
#endif // hedgehog
    fast;
    int n1, n2, n3;
    cin >> n1 >> n2 >> n3;
    vector<int> a1(n1), a2(n2), a3(n3);
    for (int &i : a1) cin >> i;
    for (int &i : a2) cin >> i;
    for (int &i : a3) cin >> i;
    int min1 = INF, min2 = INF, min3 = INF;
    int sum1 = 0, sum2 = 0, sum3 = 0, sum = 0;
    for (int i : a1) {
        min1 = min(min1, i);
        sum1 += i;
        sum += i;
    }
    for (int i : a2) {
        min2 = min(min2, i);
        sum2 += i;
        sum += i;
    }
    for (int i : a3) {
        min3 = min(min3, i);
        sum3 += i;
        sum += i;
    }
    int f = min({min1 + min2, min1 + min3, min2 + min3});
    int s = min({sum1, sum2, sum3});
    int ans = max(sum - 2 * s, sum - 2 * f);
    cout << ans << '\n';

}
