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();
		int[] list = new int[n];

		for (int i = 0; i < k; i++) {
			int num = sc.nextInt();
			for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			}
		}

		int count = 0;
		for (int num : list) {
			if(num == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();

	}

} 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();
		int[] list = new int[n];

		for (int i = 0; i < k; i++) {
			int num = sc.nextInt();
			for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			}
		}

		int count = 0;
		for (int num : list) {
			if(num == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();

	}

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

		for (int i = 0; i < k; i++) {
			int num = sc.nextInt();
			for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			}
		}

		int count = 0;
		for (int num : list) {
			if(num == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();

	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int[] list = new int[n];

		for (int i = 0; i < k; i++) {
			int num = sc.nextInt();
			for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			}
		}

		int count = 0;
		for (int num : list) {
			if(num == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();

	} 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 int[] list = new int[n]; list new int[n] n for (int i = 0; i < k; i++) {
			int num = sc.nextInt();
			for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			}
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			int num = sc.nextInt();
			for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			}
		} {
			int num = sc.nextInt();
			for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			}
		} int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			} int j = 0; int j = 0; j 0 j < num j num j++ j++ j {
				int index = sc.nextInt();
				list[index-1] += 1;
			} {
				int index = sc.nextInt();
				list[index-1] += 1;
			} int index = sc.nextInt(); index sc.nextInt() sc.nextInt sc list[index-1] += 1 list[index-1] list index-1 index 1 1 int count = 0; count 0 for (int num : list) {
			if(num == 0) {
				count++;
			}
		} int num list {
			if(num == 0) {
				count++;
			}
		} {
			if(num == 0) {
				count++;
			}
		} if(num == 0) {
				count++;
			} num == 0 num 0 {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc 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();
		int[] list = new int[n];

		for (int i = 0; i < k; i++) {
			int num = sc.nextInt();
			for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			}
		}

		int count = 0;
		for (int num : list) {
			if(num == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int[] list = new int[n];

		for (int i = 0; i < k; i++) {
			int num = sc.nextInt();
			for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			}
		}

		int count = 0;
		for (int num : list) {
			if(num == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();

	}

} Main
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();
		int[] list = new int[n];

		for (int i = 0; i < k; i++) {
			int num = sc.nextInt();
			for (int j = 0; j < num; j++) {
				int index = sc.nextInt();
				list[index-1] += 1;
			}
		}

		int count = 0;
		for (int num : list) {
			if(num == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();

	}

}
