import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int n, k;

		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		k = sc.nextInt();

		int[] a = new int[n];

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

		int count = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] == 0) {
				count++;
			}
		}

		sc.close();
		System.out.println(count);
		return;
	}

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

	public static void main(String[] args) {
		int n, k;

		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		k = sc.nextInt();

		int[] a = new int[n];

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

		int count = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] == 0) {
				count++;
			}
		}

		sc.close();
		System.out.println(count);
		return;
	}

} Main public static void main(String[] args) {
		int n, k;

		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		k = sc.nextInt();

		int[] a = new int[n];

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

		int count = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] == 0) {
				count++;
			}
		}

		sc.close();
		System.out.println(count);
		return;
	} main {
		int n, k;

		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		k = sc.nextInt();

		int[] a = new int[n];

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

		int count = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] == 0) {
				count++;
			}
		}

		sc.close();
		System.out.println(count);
		return;
	} int n n k; k Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc k = sc.nextInt() k sc.nextInt() sc.nextInt sc int[] a = new int[n]; a new int[n] n int number number index; index for (int i = 0; i < k; i++) {
			number = sc.nextInt();
			for (int j = 0; j < number; j++) {
				index = sc.nextInt();
				a[index - 1]++;
			}
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			number = sc.nextInt();
			for (int j = 0; j < number; j++) {
				index = sc.nextInt();
				a[index - 1]++;
			}
		} {
			number = sc.nextInt();
			for (int j = 0; j < number; j++) {
				index = sc.nextInt();
				a[index - 1]++;
			}
		} number = sc.nextInt() number sc.nextInt() sc.nextInt sc for (int j = 0; j < number; j++) {
				index = sc.nextInt();
				a[index - 1]++;
			} int j = 0; int j = 0; j 0 j < number j number j++ j++ j {
				index = sc.nextInt();
				a[index - 1]++;
			} {
				index = sc.nextInt();
				a[index - 1]++;
			} index = sc.nextInt() index sc.nextInt() sc.nextInt sc a[index - 1]++ a[index - 1] a index - 1 index 1 int count = 0; count 0 for (int i = 0; i < n; i++) {
			if (a[i] == 0) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if (a[i] == 0) {
				count++;
			}
		} {
			if (a[i] == 0) {
				count++;
			}
		} if (a[i] == 0) {
				count++;
			} a[i] == 0 a[i] a i 0 {
				count++;
			} count++ count sc.close() sc.close sc System.out.println(count) System.out.println System.out System System.out count return; String[] args args public class Main {

	public static void main(String[] args) {
		int n, k;

		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		k = sc.nextInt();

		int[] a = new int[n];

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

		int count = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] == 0) {
				count++;
			}
		}

		sc.close();
		System.out.println(count);
		return;
	}

} public class Main {

	public static void main(String[] args) {
		int n, k;

		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		k = sc.nextInt();

		int[] a = new int[n];

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

		int count = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] == 0) {
				count++;
			}
		}

		sc.close();
		System.out.println(count);
		return;
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int n, k;

		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		k = sc.nextInt();

		int[] a = new int[n];

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

		int count = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] == 0) {
				count++;
			}
		}

		sc.close();
		System.out.println(count);
		return;
	}

}
