#include <bits/stdc++.h>
int A[100 + 1];
int main(void) {
  int C = 0;
  int p;
  int N;
  scanf("%d", &N);
  do {
    A[N] = 1;
  } while (--N);
  scanf("%d", &N);
  while (N--) {
    scanf("%d", &p);
    A[p] = 0;
  }
  scanf("%d", &N);
  while (N--) {
    scanf("%d", &p);
  }
  scanf("%d", &N);
  while (N--) {
    scanf("%d", &p);
    C += A[p];
  }
  printf("%d\n", C);
  return 0;
}
