
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[] a = new int[N + 1];
		while (K-- > 0) {
			int x = sc.nextInt();
			while (x-- > 0) {
				a[sc.nextInt()] = 1;
			}
		}
		int count = 0;
		for (int i = 1; i < a.length; i++) {
			if (a[i] != 1)
				count++;
		}
		System.out.println(count);
	}

} 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[] a = new int[N + 1];
		while (K-- > 0) {
			int x = sc.nextInt();
			while (x-- > 0) {
				a[sc.nextInt()] = 1;
			}
		}
		int count = 0;
		for (int i = 1; i < a.length; i++) {
			if (a[i] != 1)
				count++;
		}
		System.out.println(count);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int[] a = new int[N + 1];
		while (K-- > 0) {
			int x = sc.nextInt();
			while (x-- > 0) {
				a[sc.nextInt()] = 1;
			}
		}
		int count = 0;
		for (int i = 1; i < a.length; i++) {
			if (a[i] != 1)
				count++;
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int[] a = new int[N + 1];
		while (K-- > 0) {
			int x = sc.nextInt();
			while (x-- > 0) {
				a[sc.nextInt()] = 1;
			}
		}
		int count = 0;
		for (int i = 1; i < a.length; i++) {
			if (a[i] != 1)
				count++;
		}
		System.out.println(count);
	} 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[] a = new int[N + 1]; a new int[N + 1] N + 1 N 1 while (K-- > 0) {
			int x = sc.nextInt();
			while (x-- > 0) {
				a[sc.nextInt()] = 1;
			}
		} K-- > 0 K-- K 0 {
			int x = sc.nextInt();
			while (x-- > 0) {
				a[sc.nextInt()] = 1;
			}
		} int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc while (x-- > 0) {
				a[sc.nextInt()] = 1;
			} x-- > 0 x-- x 0 {
				a[sc.nextInt()] = 1;
			} a[sc.nextInt()] = 1 a[sc.nextInt()] a sc.nextInt() sc.nextInt sc 1 int count = 0; count 0 for (int i = 1; i < a.length; i++) {
			if (a[i] != 1)
				count++;
		} int i = 1; int i = 1; i 1 i < a.length i a.length a a.length i++ i++ i {
			if (a[i] != 1)
				count++;
		} {
			if (a[i] != 1)
				count++;
		} if (a[i] != 1)
				count++; a[i] != 1 a[i] a i 1 count++ count System.out.println(count) System.out.println System.out System System.out count 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[] a = new int[N + 1];
		while (K-- > 0) {
			int x = sc.nextInt();
			while (x-- > 0) {
				a[sc.nextInt()] = 1;
			}
		}
		int count = 0;
		for (int i = 1; i < a.length; i++) {
			if (a[i] != 1)
				count++;
		}
		System.out.println(count);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int[] a = new int[N + 1];
		while (K-- > 0) {
			int x = sc.nextInt();
			while (x-- > 0) {
				a[sc.nextInt()] = 1;
			}
		}
		int count = 0;
		for (int i = 1; i < a.length; i++) {
			if (a[i] != 1)
				count++;
		}
		System.out.println(count);
	}

} 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[] a = new int[N + 1];
		while (K-- > 0) {
			int x = sc.nextInt();
			while (x-- > 0) {
				a[sc.nextInt()] = 1;
			}
		}
		int count = 0;
		for (int i = 1; i < a.length; i++) {
			if (a[i] != 1)
				count++;
		}
		System.out.println(count);
	}

}
