#include <bits/stdc++.h>
using namespace std;
long long k1, k2, k3;
long long nm[200100];
vector<long long> ww[4];
long long dp1[200100];
long long dp2[200100];
int main() {
  ios::sync_with_stdio(false);
  cin >> k1 >> k2 >> k3;
  for (int i = 0; i < k1; i++) {
    long long a;
    cin >> a;
    nm[a] = 1;
    ww[1].push_back(a);
  }
  for (int i = 0; i < k2; i++) {
    long long a;
    cin >> a;
    nm[a] = 2;
    ww[2].push_back(a);
  }
  for (int i = 0; i < k3; i++) {
    long long a;
    cin >> a;
    nm[a] = 3;
    ww[3].push_back(a);
  }
  long long rr = k1 + k2;
  long long vv = 0;
  long long mm = 0;
  long long sol = 9999999999;
  long long n = k1 + k2 + k3;
  for (int i = 0; i <= n; i++) {
    if (nm[i] == 3) {
      vv++;
    } else if (i != 0) {
      rr--;
    }
    if (i != 0) {
      dp2[i] = dp2[i - 1];
      dp1[i] = dp1[i - 1];
      if (nm[i] == 2) {
        dp2[i]++;
      } else if (nm[i] == 1) {
        dp1[i]++;
      }
      mm = min(dp2[i] - dp1[i], mm);
      sol = min(sol, dp1[i] + mm + (rr + vv));
    } else {
      sol = min(sol, rr + vv);
    }
  }
  cout << sol << endl;
  return 0;
}
