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[] a = new int[n];
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a[sc.nextInt()-1] += 1;
			}
		}
		int num = 0;
		for(int e : a){
			if(e == 0)num += 1;
		}
		System.out.println(num);
	}
	
} 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[] a = new int[n];
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a[sc.nextInt()-1] += 1;
			}
		}
		int num = 0;
		for(int e : a){
			if(e == 0)num += 1;
		}
		System.out.println(num);
	}
	
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int[] a = new int[n];
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a[sc.nextInt()-1] += 1;
			}
		}
		int num = 0;
		for(int e : a){
			if(e == 0)num += 1;
		}
		System.out.println(num);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int[] a = new int[n];
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a[sc.nextInt()-1] += 1;
			}
		}
		int num = 0;
		for(int e : a){
			if(e == 0)num += 1;
		}
		System.out.println(num);
	} 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[] a = new int[n]; a new int[n] n for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a[sc.nextInt()-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++){
				a[sc.nextInt()-1] += 1;
			}
		} {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a[sc.nextInt()-1] += 1;
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j = 0; j < d; j++){
				a[sc.nextInt()-1] += 1;
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				a[sc.nextInt()-1] += 1;
			} {
				a[sc.nextInt()-1] += 1;
			} a[sc.nextInt()-1] += 1 a[sc.nextInt()-1] a sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 1 int num = 0; num 0 for(int e : a){
			if(e == 0)num += 1;
		} int e a {
			if(e == 0)num += 1;
		} {
			if(e == 0)num += 1;
		} if(e == 0)num += 1; e == 0 e 0 num += 1 num 1 System.out.println(num) System.out.println System.out System System.out num 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[] a = new int[n];
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a[sc.nextInt()-1] += 1;
			}
		}
		int num = 0;
		for(int e : a){
			if(e == 0)num += 1;
		}
		System.out.println(num);
	}
	
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int[] a = new int[n];
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a[sc.nextInt()-1] += 1;
			}
		}
		int num = 0;
		for(int e : a){
			if(e == 0)num += 1;
		}
		System.out.println(num);
	}
	
} 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[] a = new int[n];
		for(int i = 0; i < k; i++){
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				a[sc.nextInt()-1] += 1;
			}
		}
		int num = 0;
		for(int e : a){
			if(e == 0)num += 1;
		}
		System.out.println(num);
	}
	
}