#include <bits/stdc++.h>
using namespace std;
template <typename Tp>
inline void outarr(Tp _begin, Tp _end, const char* _delim = " ") {
  for (Tp current = _begin; current != _end; ++current) {
    std::cout << *current << _delim;
  }
  std::cout << '\n';
}
using ll = long long;
using pii = std::pair<int, int>;
constexpr int INF = 0x3f3f3f3f;
constexpr int MOD = static_cast<const int>(1e9 + 7);
int len[3];
int arr[3][200000];
vector<int> vec;
int dp[200010];
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int n = 0;
  for (int i = 0; i < (3); ++i) {
    cin >> len[i];
    n += len[i];
  }
  vec.reserve(n);
  for (int i = 0; i < (3); ++i) {
    for (int j = 0; j < len[i]; ++j) {
      cin >> arr[i][j];
    }
    sort(arr[i], arr[i] + len[i]);
    for (int j = 0; j < len[i]; ++j) {
      vec.push_back(arr[i][j]);
    }
  }
  memset(dp, INF, sizeof(dp));
  dp[0] = -INF;
  int ians = 0;
  for (int i = 0; i < (n); ++i) {
    int j = distance(dp, lower_bound(dp, dp + n + 2, vec[i]));
    dp[j] = vec[i];
    ians = max(ians, j);
  }
  cout << n - ians << "\n";
  return 0;
}
