#include <bits/stdc++.h>
using namespace std;
int k1, k2, k3, n, a[200005], ans;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> k1 >> k2 >> k3;
  n = k1 + k2 + k3;
  vector<int> cntr(4);
  vector<int> cntl(4);
  for (int x, i = 1; i <= k1; i++) {
    cin >> x;
    a[x] = 1;
    cntr[a[x]]++;
  }
  for (int x, i = 1; i <= k2; i++) {
    cin >> x;
    a[x] = 2;
    cntr[a[x]]++;
  }
  for (int x, i = 1; i <= k3; i++) {
    cin >> x;
    a[x] = 3;
    cntr[a[x]]++;
  }
  for (int i = 1; i <= n; i++)
    if (a[i] != 3) ans++;
  int mi = 0;
  for (int i = 1; i <= n; i++) {
    cntl[a[i]]++;
    cntr[a[i]]--;
    mi = min(mi, cntl[2] - cntl[1]);
    int tmp = cntr[1] + cntr[2] + cntl[1] + cntl[3] + mi;
    ans = min(ans, tmp);
  }
  cout << ans;
  return 0;
}
