import java.util.*;

public class Main{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int[] ar = new int[N];
		
		for(int i=0; i < K; i++){
			int a =  scan.nextInt();
			for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			}
		}

		int con =0 ;
		for(int x :ar){
			if(x == 0) con++;
		}
		System.out.println(con);

	}

} import java.util.*; util.* java public class Main{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int[] ar = new int[N];
		
		for(int i=0; i < K; i++){
			int a =  scan.nextInt();
			for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			}
		}

		int con =0 ;
		for(int x :ar){
			if(x == 0) con++;
		}
		System.out.println(con);

	}

} Main public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int[] ar = new int[N];
		
		for(int i=0; i < K; i++){
			int a =  scan.nextInt();
			for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			}
		}

		int con =0 ;
		for(int x :ar){
			if(x == 0) con++;
		}
		System.out.println(con);

	} main {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int[] ar = new int[N];
		
		for(int i=0; i < K; i++){
			int a =  scan.nextInt();
			for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			}
		}

		int con =0 ;
		for(int x :ar){
			if(x == 0) con++;
		}
		System.out.println(con);

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan int[] ar = new int[N]; ar new int[N] N for(int i=0; i < K; i++){
			int a =  scan.nextInt();
			for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			}
		} int i=0; int i=0; i 0 i < K i K i++ i++ i {
			int a =  scan.nextInt();
			for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			}
		} {
			int a =  scan.nextInt();
			for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			}
		} int a =  scan.nextInt(); a scan.nextInt() scan.nextInt scan for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			} int j =0; int j =0; j 0 j<a j a j++ j++ j {
				ar[scan.nextInt() - 1]++;
			} {
				ar[scan.nextInt() - 1]++;
			} ar[scan.nextInt() - 1]++ ar[scan.nextInt() - 1] ar scan.nextInt() - 1 scan.nextInt() scan.nextInt scan 1 int con =0 ; con 0 for(int x :ar){
			if(x == 0) con++;
		} int x ar {
			if(x == 0) con++;
		} {
			if(x == 0) con++;
		} if(x == 0) con++; x == 0 x 0 con++ con System.out.println(con) System.out.println System.out System System.out con String[] args args public class Main{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int[] ar = new int[N];
		
		for(int i=0; i < K; i++){
			int a =  scan.nextInt();
			for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			}
		}

		int con =0 ;
		for(int x :ar){
			if(x == 0) con++;
		}
		System.out.println(con);

	}

} public class Main{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int[] ar = new int[N];
		
		for(int i=0; i < K; i++){
			int a =  scan.nextInt();
			for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			}
		}

		int con =0 ;
		for(int x :ar){
			if(x == 0) con++;
		}
		System.out.println(con);

	}

} Main
import java.util.*;

public class Main{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int[] ar = new int[N];
		
		for(int i=0; i < K; i++){
			int a =  scan.nextInt();
			for(int j =0; j<a; j++){
				ar[scan.nextInt() - 1]++;
			}
		}

		int con =0 ;
		for(int x :ar){
			if(x == 0) con++;
		}
		System.out.println(con);

	}

}