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[] ans = new int[N];
		int ans2 = 0;

		for (int i = 0; i < K; i++) {
			int dk = sc.nextInt();
			int list[] = new int[dk];
			for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			}
			for (int num : list) {
				ans[num - 1] = 9;
			}
		}

		for (int num : ans) {
			if (num == 9) {
				ans2++;
			}
		}

		System.out.println(N - ans2);
	}
} 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[] ans = new int[N];
		int ans2 = 0;

		for (int i = 0; i < K; i++) {
			int dk = sc.nextInt();
			int list[] = new int[dk];
			for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			}
			for (int num : list) {
				ans[num - 1] = 9;
			}
		}

		for (int num : ans) {
			if (num == 9) {
				ans2++;
			}
		}

		System.out.println(N - ans2);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int[] ans = new int[N];
		int ans2 = 0;

		for (int i = 0; i < K; i++) {
			int dk = sc.nextInt();
			int list[] = new int[dk];
			for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			}
			for (int num : list) {
				ans[num - 1] = 9;
			}
		}

		for (int num : ans) {
			if (num == 9) {
				ans2++;
			}
		}

		System.out.println(N - ans2);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int[] ans = new int[N];
		int ans2 = 0;

		for (int i = 0; i < K; i++) {
			int dk = sc.nextInt();
			int list[] = new int[dk];
			for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			}
			for (int num : list) {
				ans[num - 1] = 9;
			}
		}

		for (int num : ans) {
			if (num == 9) {
				ans2++;
			}
		}

		System.out.println(N - ans2);
	} 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[] ans = new int[N]; ans new int[N] N int ans2 = 0; ans2 0 for (int i = 0; i < K; i++) {
			int dk = sc.nextInt();
			int list[] = new int[dk];
			for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			}
			for (int num : list) {
				ans[num - 1] = 9;
			}
		} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
			int dk = sc.nextInt();
			int list[] = new int[dk];
			for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			}
			for (int num : list) {
				ans[num - 1] = 9;
			}
		} {
			int dk = sc.nextInt();
			int list[] = new int[dk];
			for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			}
			for (int num : list) {
				ans[num - 1] = 9;
			}
		} int dk = sc.nextInt(); dk sc.nextInt() sc.nextInt sc int list[] = new int[dk]; list new int[dk] dk for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			} int c = 0; int c = 0; c 0 c < dk c dk c++ c++ c {
				list[c] = sc.nextInt();
			} {
				list[c] = sc.nextInt();
			} list[c] = sc.nextInt() list[c] list c sc.nextInt() sc.nextInt sc for (int num : list) {
				ans[num - 1] = 9;
			} int num list {
				ans[num - 1] = 9;
			} {
				ans[num - 1] = 9;
			} ans[num - 1] = 9 ans[num - 1] ans num - 1 num 1 9 for (int num : ans) {
			if (num == 9) {
				ans2++;
			}
		} int num ans {
			if (num == 9) {
				ans2++;
			}
		} {
			if (num == 9) {
				ans2++;
			}
		} if (num == 9) {
				ans2++;
			} num == 9 num 9 {
				ans2++;
			} ans2++ ans2 System.out.println(N - ans2) System.out.println System.out System System.out N - ans2 N ans2 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[] ans = new int[N];
		int ans2 = 0;

		for (int i = 0; i < K; i++) {
			int dk = sc.nextInt();
			int list[] = new int[dk];
			for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			}
			for (int num : list) {
				ans[num - 1] = 9;
			}
		}

		for (int num : ans) {
			if (num == 9) {
				ans2++;
			}
		}

		System.out.println(N - ans2);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int[] ans = new int[N];
		int ans2 = 0;

		for (int i = 0; i < K; i++) {
			int dk = sc.nextInt();
			int list[] = new int[dk];
			for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			}
			for (int num : list) {
				ans[num - 1] = 9;
			}
		}

		for (int num : ans) {
			if (num == 9) {
				ans2++;
			}
		}

		System.out.println(N - ans2);
	}
} 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[] ans = new int[N];
		int ans2 = 0;

		for (int i = 0; i < K; i++) {
			int dk = sc.nextInt();
			int list[] = new int[dk];
			for (int c = 0; c < dk; c++) {
				list[c] = sc.nextInt();
			}
			for (int num : list) {
				ans[num - 1] = 9;
			}
		}

		for (int num : ans) {
			if (num == 9) {
				ans2++;
			}
		}

		System.out.println(N - ans2);
	}
}
