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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();
		HashSet<Integer> list = new HashSet<Integer>();

		for (int i = 1; i <= K; i++) {
			int A = sc.nextInt();
			for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			}
		}

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

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();
		HashSet<Integer> list = new HashSet<Integer>();

		for (int i = 1; i <= K; i++) {
			int A = sc.nextInt();
			for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			}
		}

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

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();
		HashSet<Integer> list = new HashSet<Integer>();

		for (int i = 1; i <= K; i++) {
			int A = sc.nextInt();
			for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			}
		}

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

	} main {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();
		HashSet<Integer> list = new HashSet<Integer>();

		for (int i = 1; i <= K; i++) {
			int A = sc.nextInt();
			for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			}
		}

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

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc HashSet<Integer> list = new HashSet<Integer>(); list new HashSet<Integer>() for (int i = 1; i <= K; i++) {
			int A = sc.nextInt();
			for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			}
		} int i = 1; int i = 1; i 1 i <= K i K i++ i++ i {
			int A = sc.nextInt();
			for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			}
		} {
			int A = sc.nextInt();
			for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			}
		} int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			} int j = 1; int j = 1; j 1 j <= A j A j++ j++ j {
				list.add(sc.nextInt());
			} {
				list.add(sc.nextInt());
			} list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc System.out.println(N - list.size()) System.out.println System.out System System.out N - list.size() N list.size() list.size list String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();
		HashSet<Integer> list = new HashSet<Integer>();

		for (int i = 1; i <= K; i++) {
			int A = sc.nextInt();
			for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			}
		}

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

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();
		HashSet<Integer> list = new HashSet<Integer>();

		for (int i = 1; i <= K; i++) {
			int A = sc.nextInt();
			for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			}
		}

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

	}

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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();
		HashSet<Integer> list = new HashSet<Integer>();

		for (int i = 1; i <= K; i++) {
			int A = sc.nextInt();
			for (int j = 1; j <= A; j++) {
				list.add(sc.nextInt());
			}
		}

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

	}

}