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 D = 0;
		int A = 0;
		
		
		int ans[]=new int[N+1];
		int anss = 0;
		
		for(int i=1;i<=K;i++){
			D = sc.nextInt();
			for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			}
		}

		for(int k=1;k<=N;k++){
			if (ans[k]!=1) {
			anss=anss+1;
			}
		}

		System.out.println(anss);
    }
} 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 D = 0;
		int A = 0;
		
		
		int ans[]=new int[N+1];
		int anss = 0;
		
		for(int i=1;i<=K;i++){
			D = sc.nextInt();
			for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			}
		}

		for(int k=1;k<=N;k++){
			if (ans[k]!=1) {
			anss=anss+1;
			}
		}

		System.out.println(anss);
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int D = 0;
		int A = 0;
		
		
		int ans[]=new int[N+1];
		int anss = 0;
		
		for(int i=1;i<=K;i++){
			D = sc.nextInt();
			for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			}
		}

		for(int k=1;k<=N;k++){
			if (ans[k]!=1) {
			anss=anss+1;
			}
		}

		System.out.println(anss);
    } main {
    	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int D = 0;
		int A = 0;
		
		
		int ans[]=new int[N+1];
		int anss = 0;
		
		for(int i=1;i<=K;i++){
			D = sc.nextInt();
			for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			}
		}

		for(int k=1;k<=N;k++){
			if (ans[k]!=1) {
			anss=anss+1;
			}
		}

		System.out.println(anss);
    } 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 D = 0; D 0 int A = 0; A 0 int ans[]=new int[N+1]; ans new int[N+1] N+1 N 1 int anss = 0; anss 0 for(int i=1;i<=K;i++){
			D = sc.nextInt();
			for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			}
		} int i=1; int i=1; i 1 i<=K i K i++ i++ i {
			D = sc.nextInt();
			for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			}
		} {
			D = sc.nextInt();
			for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			}
		} D = sc.nextInt() D sc.nextInt() sc.nextInt sc for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			} int j=1; int j=1; j 1 j<=D j D j++ j++ j {
				A = sc.nextInt();
				ans[A]=1;	
			} {
				A = sc.nextInt();
				ans[A]=1;	
			} A = sc.nextInt() A sc.nextInt() sc.nextInt sc ans[A]=1 ans[A] ans A 1 for(int k=1;k<=N;k++){
			if (ans[k]!=1) {
			anss=anss+1;
			}
		} int k=1; int k=1; k 1 k<=N k N k++ k++ k {
			if (ans[k]!=1) {
			anss=anss+1;
			}
		} {
			if (ans[k]!=1) {
			anss=anss+1;
			}
		} if (ans[k]!=1) {
			anss=anss+1;
			} ans[k]!=1 ans[k] ans k 1 {
			anss=anss+1;
			} anss=anss+1 anss anss+1 anss 1 System.out.println(anss) System.out.println System.out System System.out anss 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 D = 0;
		int A = 0;
		
		
		int ans[]=new int[N+1];
		int anss = 0;
		
		for(int i=1;i<=K;i++){
			D = sc.nextInt();
			for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			}
		}

		for(int k=1;k<=N;k++){
			if (ans[k]!=1) {
			anss=anss+1;
			}
		}

		System.out.println(anss);
    }
} public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int D = 0;
		int A = 0;
		
		
		int ans[]=new int[N+1];
		int anss = 0;
		
		for(int i=1;i<=K;i++){
			D = sc.nextInt();
			for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			}
		}

		for(int k=1;k<=N;k++){
			if (ans[k]!=1) {
			anss=anss+1;
			}
		}

		System.out.println(anss);
    }
} 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 D = 0;
		int A = 0;
		
		
		int ans[]=new int[N+1];
		int anss = 0;
		
		for(int i=1;i<=K;i++){
			D = sc.nextInt();
			for(int j=1;j<=D;j++){
				A = sc.nextInt();
				ans[A]=1;	
			}
		}

		for(int k=1;k<=N;k++){
			if (ans[k]!=1) {
			anss=anss+1;
			}
		}

		System.out.println(anss);
    }
}