import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt(), k = sc.nextInt(), c[] = new int[n], t = 0;

		for(int i = 0; i < k; i++) {
			int h = sc.nextInt();
			for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			}
		}

		for(int i = 0; i < n; i++) t += c[i] == 0 ? 1 : 0;

		System.out.println(t);
	}
} 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(), k = sc.nextInt(), c[] = new int[n], t = 0;

		for(int i = 0; i < k; i++) {
			int h = sc.nextInt();
			for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			}
		}

		for(int i = 0; i < n; i++) t += c[i] == 0 ? 1 : 0;

		System.out.println(t);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt(), k = sc.nextInt(), c[] = new int[n], t = 0;

		for(int i = 0; i < k; i++) {
			int h = sc.nextInt();
			for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			}
		}

		for(int i = 0; i < n; i++) t += c[i] == 0 ? 1 : 0;

		System.out.println(t);
	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt(), k = sc.nextInt(), c[] = new int[n], t = 0;

		for(int i = 0; i < k; i++) {
			int h = sc.nextInt();
			for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			}
		}

		for(int i = 0; i < n; i++) t += c[i] == 0 ? 1 : 0;

		System.out.println(t);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt() n sc.nextInt() sc.nextInt sc k = sc.nextInt() k sc.nextInt() sc.nextInt sc c[] = new int[n] c new int[n] n t = 0; t 0 for(int i = 0; i < k; i++) {
			int h = sc.nextInt();
			for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			}
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			int h = sc.nextInt();
			for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			}
		} {
			int h = sc.nextInt();
			for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			}
		} int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			} int j = 0; int j = 0; j 0 j < h j h j++ j++ j {
				int idx = sc.nextInt();
				c[idx-1]++;
			} {
				int idx = sc.nextInt();
				c[idx-1]++;
			} int idx = sc.nextInt(); idx sc.nextInt() sc.nextInt sc c[idx-1]++ c[idx-1] c idx-1 idx 1 for(int i = 0; i < n; i++) t += c[i] == 0 ? 1 : 0; int i = 0; int i = 0; i 0 i < n i n i++ i++ i t += c[i] == 0 ? 1 : 0; t += c[i] == 0 ? 1 : 0 t c[i] == 0 ? 1 : 0 c[i] == 0 c[i] c i 0 1 0 System.out.println(t) System.out.println System.out System System.out t String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt(), k = sc.nextInt(), c[] = new int[n], t = 0;

		for(int i = 0; i < k; i++) {
			int h = sc.nextInt();
			for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			}
		}

		for(int i = 0; i < n; i++) t += c[i] == 0 ? 1 : 0;

		System.out.println(t);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt(), k = sc.nextInt(), c[] = new int[n], t = 0;

		for(int i = 0; i < k; i++) {
			int h = sc.nextInt();
			for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			}
		}

		for(int i = 0; i < n; i++) t += c[i] == 0 ? 1 : 0;

		System.out.println(t);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt(), k = sc.nextInt(), c[] = new int[n], t = 0;

		for(int i = 0; i < k; i++) {
			int h = sc.nextInt();
			for(int j = 0; j < h; j++) {
				int idx = sc.nextInt();
				c[idx-1]++;
			}
		}

		for(int i = 0; i < n; i++) t += c[i] == 0 ? 1 : 0;

		System.out.println(t);
	}
}