
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] res = new boolean[N];
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			}

		}
		int output = 0;
		for (int i = 0; i < res.length; i++) {
			if (!res[i]) {
				output++;
			}
		}
		System.out.println(output);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] res = new boolean[N];
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			}

		}
		int output = 0;
		for (int i = 0; i < res.length; i++) {
			if (!res[i]) {
				output++;
			}
		}
		System.out.println(output);
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] res = new boolean[N];
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			}

		}
		int output = 0;
		for (int i = 0; i < res.length; i++) {
			if (!res[i]) {
				output++;
			}
		}
		System.out.println(output);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] res = new boolean[N];
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			}

		}
		int output = 0;
		for (int i = 0; i < res.length; i++) {
			if (!res[i]) {
				output++;
			}
		}
		System.out.println(output);
	} 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 boolean[] res = new boolean[N]; res new boolean[N] N for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			}

		} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			}

		} {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			}

		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			} {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			} int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc res[tmp - 1] = true res[tmp - 1] res tmp - 1 tmp 1 true int output = 0; output 0 for (int i = 0; i < res.length; i++) {
			if (!res[i]) {
				output++;
			}
		} int i = 0; int i = 0; i 0 i < res.length i res.length res res.length i++ i++ i {
			if (!res[i]) {
				output++;
			}
		} {
			if (!res[i]) {
				output++;
			}
		} if (!res[i]) {
				output++;
			} !res[i] res[i] res i {
				output++;
			} output++ output System.out.println(output) System.out.println System.out System System.out output String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] res = new boolean[N];
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			}

		}
		int output = 0;
		for (int i = 0; i < res.length; i++) {
			if (!res[i]) {
				output++;
			}
		}
		System.out.println(output);
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] res = new boolean[N];
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			}

		}
		int output = 0;
		for (int i = 0; i < res.length; i++) {
			if (!res[i]) {
				output++;
			}
		}
		System.out.println(output);
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		boolean[] res = new boolean[N];
		for (int i = 0; i < K; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int tmp = sc.nextInt();
				res[tmp - 1] = true;
			}

		}
		int output = 0;
		for (int i = 0; i < res.length; i++) {
			if (!res[i]) {
				output++;
			}
		}
		System.out.println(output);
	}
}