//B
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 snk[] = new int[n];
		for (int i = 0; i < n; i++) {
			snk[i] = 0;
		}
		
		for (int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			}
		}
		
		int count = 0;
		for (int l = 0; l < n; l++) {
			if (snk[l] == 0) {
				count++;
			}
		}
		System.out.println(count);
	}
} 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 snk[] = new int[n];
		for (int i = 0; i < n; i++) {
			snk[i] = 0;
		}
		
		for (int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			}
		}
		
		int count = 0;
		for (int l = 0; l < n; l++) {
			if (snk[l] == 0) {
				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 snk[] = new int[n];
		for (int i = 0; i < n; i++) {
			snk[i] = 0;
		}
		
		for (int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			}
		}
		
		int count = 0;
		for (int l = 0; l < n; l++) {
			if (snk[l] == 0) {
				count++;
			}
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		
		int snk[] = new int[n];
		for (int i = 0; i < n; i++) {
			snk[i] = 0;
		}
		
		for (int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			}
		}
		
		int count = 0;
		for (int l = 0; l < n; l++) {
			if (snk[l] == 0) {
				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 snk[] = new int[n]; snk new int[n] n for (int i = 0; i < n; i++) {
			snk[i] = 0;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			snk[i] = 0;
		} {
			snk[i] = 0;
		} snk[i] = 0 snk[i] snk i 0 for (int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			}
		} 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 a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			}
		} {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			} {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			} int a_id = sc.nextInt(); a_id sc.nextInt() sc.nextInt sc snk[a_id - 1] = 1 snk[a_id - 1] snk a_id - 1 a_id 1 1 int count = 0; count 0 for (int l = 0; l < n; l++) {
			if (snk[l] == 0) {
				count++;
			}
		} int l = 0; int l = 0; l 0 l < n l n l++ l++ l {
			if (snk[l] == 0) {
				count++;
			}
		} {
			if (snk[l] == 0) {
				count++;
			}
		} if (snk[l] == 0) {
				count++;
			} snk[l] == 0 snk[l] snk l 0 {
				count++;
			} 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 snk[] = new int[n];
		for (int i = 0; i < n; i++) {
			snk[i] = 0;
		}
		
		for (int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			}
		}
		
		int count = 0;
		for (int l = 0; l < n; l++) {
			if (snk[l] == 0) {
				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 snk[] = new int[n];
		for (int i = 0; i < n; i++) {
			snk[i] = 0;
		}
		
		for (int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			}
		}
		
		int count = 0;
		for (int l = 0; l < n; l++) {
			if (snk[l] == 0) {
				count++;
			}
		}
		System.out.println(count);
	}
} Main
//B
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 snk[] = new int[n];
		for (int i = 0; i < n; i++) {
			snk[i] = 0;
		}
		
		for (int i = 0; i < k; i++) {
			int d = sc.nextInt();
			for (int j = 0; j < d; j++) {
				int a_id = sc.nextInt();
				snk[a_id - 1] = 1;
			}
		}
		
		int count = 0;
		for (int l = 0; l < n; l++) {
			if (snk[l] == 0) {
				count++;
			}
		}
		System.out.println(count);
	}
}