import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int K = scan.nextInt();
		Set<Integer> k = new HashSet<>();

		for(int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			}
		}


		System.out.println(N - k.size());

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

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int K = scan.nextInt();
		Set<Integer> k = new HashSet<>();

		for(int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			}
		}


		System.out.println(N - k.size());

	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int K = scan.nextInt();
		Set<Integer> k = new HashSet<>();

		for(int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			}
		}


		System.out.println(N - k.size());

	} main {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int K = scan.nextInt();
		Set<Integer> k = new HashSet<>();

		for(int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			}
		}


		System.out.println(N - k.size());

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan Set<Integer> k = new HashSet<>(); k new HashSet<>() for(int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			}
		} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			}
		} {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			}
		} int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				k.add(scan.nextInt());
			} {
				k.add(scan.nextInt());
			} k.add(scan.nextInt()) k.add k scan.nextInt() scan.nextInt scan System.out.println(N - k.size()) System.out.println System.out System System.out N - k.size() N k.size() k.size k String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int K = scan.nextInt();
		Set<Integer> k = new HashSet<>();

		for(int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			}
		}


		System.out.println(N - k.size());

	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int K = scan.nextInt();
		Set<Integer> k = new HashSet<>();

		for(int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			}
		}


		System.out.println(N - k.size());

	}
} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int K = scan.nextInt();
		Set<Integer> k = new HashSet<>();

		for(int i = 0; i < K; i++) {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++) {
				k.add(scan.nextInt());
			}
		}


		System.out.println(N - k.size());

	}
}