#include <bits/stdc++.h>
using namespace std;
int x, cnt[5], a[200005], n, cur[5], dp[200005], ans = 1e9;
int main() {
  ios::sync_with_stdio(false);
  cin >> cnt[1] >> cnt[2] >> cnt[3];
  n = cnt[1] + cnt[2] + cnt[3];
  for (int i = 1; i <= cnt[1]; ++i) {
    cin >> x;
    a[x] = 1;
  }
  for (int i = 1; i <= cnt[2]; ++i) {
    cin >> x;
    a[x] = 2;
  }
  for (int i = 1; i <= cnt[3]; ++i) {
    cin >> x;
    a[x] = 3;
  }
  dp[0] = cnt[1] + cnt[2];
  ans = min(dp[0], cnt[2] + cnt[3]);
  for (int i = 1; i <= n; ++i) {
    cur[a[i]]++;
    ans = min(ans, cur[3] + cnt[1] - cur[1] + cnt[2]);
  }
  for (int i = 1; i <= 3; ++i) cur[i] = 0;
  for (int i = 1; i <= n; ++i) {
    dp[i] = dp[i - 1];
    if (a[i] == 2)
      dp[i]--;
    else if (a[i] == 3)
      dp[i]++;
    int tmp = cur[2] + cur[3];
    cur[a[i]]++;
    if (a[i] != 2) tmp++;
    tmp += cnt[1] - cur[1] + cnt[2] - cur[2];
    dp[i] = min(dp[i], tmp);
    ans = min(ans, dp[i]);
  }
  cout << ans << "\n";
  return 0;
}
