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

typedef long long ll;
typedef pair<int, int> P;

#define pb push_back
#define rep(i, a, n) for(int i = (a); i < (n); i++)
#define dep(i, a, n) for(int i = (a); i >= (n); i--)
#define mod 1e9+7

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}


int main() {
  int n, x, y, z;
  cin >> n >> x;
  int a[101] = {}, b[101] = {}, c[101] = {}, k;
  rep(i, 0, x) cin >> k, a[k] = 1;
  cin >> y;
  rep(i, 0, y) cin >> k, b[k] = 1;
  cin >> z;
  rep(i, 0, z) cin >> c[i];
  int ans = 0;
  rep(i, 0, z) if(b[c[i]] || !a[c[i]]) ans++;
  cout << ans << endl;
}