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[] check = new int[N];
        int counter = 0;
        
        for(int q=0; q<N; q++){
          check[q] = -1;
        }
      
      	for(int i=0; i<K; i++){
          int d = sc.nextInt();
            for(int j=0; j<d; j++){
              int a = sc.nextInt();
              check[a-1] = 0;
            }
        }
      
		for(int r=0; r<N; r++){
          if(check[r] == -1){
            counter++;
          }
        }
      
        System.out.println(counter);
    }
} 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[] check = new int[N];
        int counter = 0;
        
        for(int q=0; q<N; q++){
          check[q] = -1;
        }
      
      	for(int i=0; i<K; i++){
          int d = sc.nextInt();
            for(int j=0; j<d; j++){
              int a = sc.nextInt();
              check[a-1] = 0;
            }
        }
      
		for(int r=0; r<N; r++){
          if(check[r] == -1){
            counter++;
          }
        }
      
        System.out.println(counter);
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int K = sc.nextInt();
        int[] check = new int[N];
        int counter = 0;
        
        for(int q=0; q<N; q++){
          check[q] = -1;
        }
      
      	for(int i=0; i<K; i++){
          int d = sc.nextInt();
            for(int j=0; j<d; j++){
              int a = sc.nextInt();
              check[a-1] = 0;
            }
        }
      
		for(int r=0; r<N; r++){
          if(check[r] == -1){
            counter++;
          }
        }
      
        System.out.println(counter);
    } main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int K = sc.nextInt();
        int[] check = new int[N];
        int counter = 0;
        
        for(int q=0; q<N; q++){
          check[q] = -1;
        }
      
      	for(int i=0; i<K; i++){
          int d = sc.nextInt();
            for(int j=0; j<d; j++){
              int a = sc.nextInt();
              check[a-1] = 0;
            }
        }
      
		for(int r=0; r<N; r++){
          if(check[r] == -1){
            counter++;
          }
        }
      
        System.out.println(counter);
    } 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[] check = new int[N]; check new int[N] N int counter = 0; counter 0 for(int q=0; q<N; q++){
          check[q] = -1;
        } int q=0; int q=0; q 0 q<N q N q++ q++ q {
          check[q] = -1;
        } {
          check[q] = -1;
        } check[q] = -1 check[q] check q -1 1 for(int i=0; i<K; i++){
          int d = sc.nextInt();
            for(int j=0; j<d; j++){
              int a = sc.nextInt();
              check[a-1] = 0;
            }
        } 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 = sc.nextInt();
              check[a-1] = 0;
            }
        } {
          int d = sc.nextInt();
            for(int j=0; j<d; j++){
              int a = sc.nextInt();
              check[a-1] = 0;
            }
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j=0; j<d; j++){
              int a = sc.nextInt();
              check[a-1] = 0;
            } int j=0; int j=0; j 0 j<d j d j++ j++ j {
              int a = sc.nextInt();
              check[a-1] = 0;
            } {
              int a = sc.nextInt();
              check[a-1] = 0;
            } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc check[a-1] = 0 check[a-1] check a-1 a 1 0 for(int r=0; r<N; r++){
          if(check[r] == -1){
            counter++;
          }
        } int r=0; int r=0; r 0 r<N r N r++ r++ r {
          if(check[r] == -1){
            counter++;
          }
        } {
          if(check[r] == -1){
            counter++;
          }
        } if(check[r] == -1){
            counter++;
          } check[r] == -1 check[r] check r -1 1 {
            counter++;
          } counter++ counter System.out.println(counter) System.out.println System.out System System.out counter 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[] check = new int[N];
        int counter = 0;
        
        for(int q=0; q<N; q++){
          check[q] = -1;
        }
      
      	for(int i=0; i<K; i++){
          int d = sc.nextInt();
            for(int j=0; j<d; j++){
              int a = sc.nextInt();
              check[a-1] = 0;
            }
        }
      
		for(int r=0; r<N; r++){
          if(check[r] == -1){
            counter++;
          }
        }
      
        System.out.println(counter);
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int K = sc.nextInt();
        int[] check = new int[N];
        int counter = 0;
        
        for(int q=0; q<N; q++){
          check[q] = -1;
        }
      
      	for(int i=0; i<K; i++){
          int d = sc.nextInt();
            for(int j=0; j<d; j++){
              int a = sc.nextInt();
              check[a-1] = 0;
            }
        }
      
		for(int r=0; r<N; r++){
          if(check[r] == -1){
            counter++;
          }
        }
      
        System.out.println(counter);
    }
} 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[] check = new int[N];
        int counter = 0;
        
        for(int q=0; q<N; q++){
          check[q] = -1;
        }
      
      	for(int i=0; i<K; i++){
          int d = sc.nextInt();
            for(int j=0; j<d; j++){
              int a = sc.nextInt();
              check[a-1] = 0;
            }
        }
      
		for(int r=0; r<N; r++){
          if(check[r] == -1){
            counter++;
          }
        }
      
        System.out.println(counter);
    }
}
