import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine().split(" ")[0]);
		boolean[] hasSnack = new boolean[N];
		
		while (sc.hasNextLine()) {
			sc.nextLine();
			for (String snk : sc.nextLine().split(" ")) {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            }
		}
		
		System.out.println(N);
	
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine().split(" ")[0]);
		boolean[] hasSnack = new boolean[N];
		
		while (sc.hasNextLine()) {
			sc.nextLine();
			for (String snk : sc.nextLine().split(" ")) {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            }
		}
		
		System.out.println(N);
	
	}

} Main public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine().split(" ")[0]);
		boolean[] hasSnack = new boolean[N];
		
		while (sc.hasNextLine()) {
			sc.nextLine();
			for (String snk : sc.nextLine().split(" ")) {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            }
		}
		
		System.out.println(N);
	
	} main {
	
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine().split(" ")[0]);
		boolean[] hasSnack = new boolean[N];
		
		while (sc.hasNextLine()) {
			sc.nextLine();
			for (String snk : sc.nextLine().split(" ")) {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            }
		}
		
		System.out.println(N);
	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.nextLine().split(" ")[0]); N Integer.parseInt(sc.nextLine().split(" ")[0]) Integer.parseInt Integer sc.nextLine().split(" ")[0] sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " 0 boolean[] hasSnack = new boolean[N]; hasSnack new boolean[N] N while (sc.hasNextLine()) {
			sc.nextLine();
			for (String snk : sc.nextLine().split(" ")) {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            }
		} sc.hasNextLine() sc.hasNextLine sc {
			sc.nextLine();
			for (String snk : sc.nextLine().split(" ")) {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            }
		} sc.nextLine() sc.nextLine sc for (String snk : sc.nextLine().split(" ")) {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            } String snk sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            } {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            } int snki = Integer.parseInt(snk) - 1; snki Integer.parseInt(snk) - 1 Integer.parseInt(snk) Integer.parseInt Integer snk 1 if (hasSnack[snki])
              	continue; hasSnack[snki] hasSnack snki continue; N-- N hasSnack[snki] = true hasSnack[snki] hasSnack snki true System.out.println(N) System.out.println System.out System System.out N String[] args args public class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine().split(" ")[0]);
		boolean[] hasSnack = new boolean[N];
		
		while (sc.hasNextLine()) {
			sc.nextLine();
			for (String snk : sc.nextLine().split(" ")) {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            }
		}
		
		System.out.println(N);
	
	}

} public class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine().split(" ")[0]);
		boolean[] hasSnack = new boolean[N];
		
		while (sc.hasNextLine()) {
			sc.nextLine();
			for (String snk : sc.nextLine().split(" ")) {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            }
		}
		
		System.out.println(N);
	
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine().split(" ")[0]);
		boolean[] hasSnack = new boolean[N];
		
		while (sc.hasNextLine()) {
			sc.nextLine();
			for (String snk : sc.nextLine().split(" ")) {
              int snki = Integer.parseInt(snk) - 1;
              if (hasSnack[snki])
              	continue;
              N--;
			  hasSnack[snki] = true;
            }
		}
		
		System.out.println(N);
	
	}

}