#include <bits/stdc++.h>
using namespace std;
const long long Mod = 1e9 + 7;
int a[200005], b[200005], c[200005], va[200005], vb[200005], vc[200005];
int dp[200005][5];
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  ;
  int aa, bb, cc;
  cin >> aa >> bb >> cc;
  int n = aa + bb + cc;
  for (int i = 1; i <= n; i++) {
    va[i] = 1;
    vb[i] = 1;
    vc[i] = 1;
  }
  for (int i = 1; i <= aa; i++) {
    cin >> a[i];
    va[a[i]] = 0;
  }
  for (int i = 1; i <= bb; i++) {
    cin >> b[i];
    vb[b[i]] = 0;
  }
  for (int i = 1; i <= cc; i++) {
    cin >> c[i];
    vc[c[i]] = 0;
  }
  for (int i = 1; i <= n; i++) {
    dp[i][1] = dp[i - 1][1] + va[i];
    dp[i][2] = min(dp[i - 1][1] + vb[i], dp[i - 1][2] + vb[i]);
    dp[i][3] = min(min(dp[i - 1][1] + vc[i], dp[i - 1][2] + vc[i]),
                   dp[i - 1][3] + vc[i]);
  }
  cout << min(min(dp[n][1], dp[n][2]), dp[n][3]) << endl;
  return 0;
}
