#include <bits/stdc++.h>
using namespace std;

int main()
{
  int n;
  int m;
  bool f[105];
  int kanade = 0;

  memset(f, true, sizeof(f));

  cin >> n;
  cin >> m;
  for (int i = 0; i < m; i++) {
    int tmp; cin >> tmp;
    f[tmp] = false;
  }

  cin >> m;
  for (int i = 0; i < m; i++) {
    int tmp; cin >> tmp;
    f[tmp] = true;
  }
  
  cin >> m;
  for (int i = 0; i < m; i++) {
    int tmp; cin >> tmp;
    if (f[tmp]) kanade++;
  }

  cout << kanade << endl;
}