#include <bits/stdc++.h>
using namespace std;
inline int input() {
  char c = getchar();
  int o;
  bool f = 0;
  while (c > 57 || c < 48) f |= (c == '-'), c = getchar();
  for (o = 0; c > 47 && c < 58; c = getchar()) o = (o << 1) + (o << 3) + c - 48;
  return f ? -o : o;
}
int c[4], P[201234], dp[201234][4];
int mini(int a, int b, int c) {
  if (a <= b) {
    if (a <= c)
      return a;
    else
      return c;
  } else {
    if (b <= c)
      return b;
    else
      return c;
  }
}
int main() {
  for (int i = 1; i <= 3; i++) c[i] = input();
  int n = c[1] + c[2] + c[3];
  for (int i = 1; i <= 3; i++) {
    for (int j = 1; j <= c[i]; j++) P[input()] = i;
  }
  dp[0][1] = dp[0][2] = dp[0][3] = 0;
  for (int i = 1; i <= n; i++) {
    dp[i][1] = dp[i - 1][1] + (P[i] != 1);
    dp[i][2] = min(dp[i - 1][1], dp[i - 1][2]) + (P[i] != 2);
    dp[i][3] = mini(dp[i - 1][1], dp[i - 1][2], dp[i - 1][3]) + (P[i] != 3);
  }
  printf("%d", mini(dp[n][1], dp[n][2], dp[n][3]));
}
