import 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[] cnt = new int[N+1];
		for (int i = 0; i < K; i++) {
			for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			}
		}
		int ans = 0;
		for (int i = 1; i <=N; i++) {
			if(cnt[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int[] cnt = new int[N+1];
		for (int i = 0; i < K; i++) {
			for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			}
		}
		int ans = 0;
		for (int i = 1; i <=N; i++) {
			if(cnt[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int[] cnt = new int[N+1];
		for (int i = 0; i < K; i++) {
			for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			}
		}
		int ans = 0;
		for (int i = 1; i <=N; i++) {
			if(cnt[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int[] cnt = new int[N+1];
		for (int i = 0; i < K; i++) {
			for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			}
		}
		int ans = 0;
		for (int i = 1; i <=N; i++) {
			if(cnt[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
	} 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[] cnt = new int[N+1]; cnt new int[N+1] N+1 N 1 for (int i = 0; i < K; i++) {
			for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			}
		} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
			for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			}
		} {
			for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			}
		} for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			} int d = sc.nextInt(); int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc d > 0 d 0 d-- d-- d {
				cnt[sc.nextInt()]++;
			} {
				cnt[sc.nextInt()]++;
			} cnt[sc.nextInt()]++ cnt[sc.nextInt()] cnt sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for (int i = 1; i <=N; i++) {
			if(cnt[i] == 0) {
				ans++;
			}
		} int i = 1; int i = 1; i 1 i <=N i N i++ i++ i {
			if(cnt[i] == 0) {
				ans++;
			}
		} {
			if(cnt[i] == 0) {
				ans++;
			}
		} if(cnt[i] == 0) {
				ans++;
			} cnt[i] == 0 cnt[i] cnt i 0 {
				ans++;
			} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans 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[] cnt = new int[N+1];
		for (int i = 0; i < K; i++) {
			for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			}
		}
		int ans = 0;
		for (int i = 1; i <=N; i++) {
			if(cnt[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int[] cnt = new int[N+1];
		for (int i = 0; i < K; i++) {
			for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			}
		}
		int ans = 0;
		for (int i = 1; i <=N; i++) {
			if(cnt[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
	}
} Main
import 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[] cnt = new int[N+1];
		for (int i = 0; i < K; i++) {
			for (int d = sc.nextInt(); d > 0; d--) {
				cnt[sc.nextInt()]++;
			}
		}
		int ans = 0;
		for (int i = 1; i <=N; i++) {
			if(cnt[i] == 0) {
				ans++;
			}
		}
		System.out.println(ans);
	}
}
