import java.util.*;

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]++;
			}
		}
		int count = 0;
		for(int r : A){
			if(r == 0){
				count++;
			}
		}
		System.out.print(count);
	}
} import java.util.*; util.* java 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]++;
			}
		}
		int count = 0;
		for(int r : A){
			if(r == 0){
				count++;
			}
		}
		System.out.print(count);
	}
} 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]++;
			}
		}
		int count = 0;
		for(int r : A){
			if(r == 0){
				count++;
			}
		}
		System.out.print(count);
	} 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]++;
			}
		}
		int count = 0;
		for(int r : A){
			if(r == 0){
				count++;
			}
		}
		System.out.print(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[] 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]++;
			}
		} 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]++;
			}
		} {
			int d = sc.nextInt();
			for(int j = 0; j < d; j++){
				A[sc.nextInt()-1]++;
			}
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j = 0; j < d; j++){
				A[sc.nextInt()-1]++;
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				A[sc.nextInt()-1]++;
			} {
				A[sc.nextInt()-1]++;
			} A[sc.nextInt()-1]++ A[sc.nextInt()-1] A sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 int count = 0; count 0 for(int r : A){
			if(r == 0){
				count++;
			}
		} int r A {
			if(r == 0){
				count++;
			}
		} {
			if(r == 0){
				count++;
			}
		} if(r == 0){
				count++;
			} r == 0 r 0 {
				count++;
			} count++ count System.out.print(count) System.out.print System.out System System.out count String[] args args
import java.util.*;

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]++;
			}
		}
		int count = 0;
		for(int r : A){
			if(r == 0){
				count++;
			}
		}
		System.out.print(count);
	}
}
