import java.util.Scanner;
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;
        int ans = 0;
        
        int[] C = new int[(int) N];
        for(int i = 0; i < N ; i++){
            C[i] = 1;
        }
        for(int n = 0; n < K ; n++){
            d = sc.nextInt();
            int[] A = new int[(int)d];
                for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                }
        }
        
        for(int i = 0; i < N ;i++){
            ans = ans + C[i];
        }        
        System.out.println(ans);
    
    }
} import java.util.Scanner; Scanner 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;
        int ans = 0;
        
        int[] C = new int[(int) N];
        for(int i = 0; i < N ; i++){
            C[i] = 1;
        }
        for(int n = 0; n < K ; n++){
            d = sc.nextInt();
            int[] A = new int[(int)d];
                for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                }
        }
        
        for(int i = 0; i < N ;i++){
            ans = ans + C[i];
        }        
        System.out.println(ans);
    
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int d;
        int ans = 0;
        
        int[] C = new int[(int) N];
        for(int i = 0; i < N ; i++){
            C[i] = 1;
        }
        for(int n = 0; n < K ; n++){
            d = sc.nextInt();
            int[] A = new int[(int)d];
                for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                }
        }
        
        for(int i = 0; i < N ;i++){
            ans = ans + C[i];
        }        
        System.out.println(ans);
    
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int d;
        int ans = 0;
        
        int[] C = new int[(int) N];
        for(int i = 0; i < N ; i++){
            C[i] = 1;
        }
        for(int n = 0; n < K ; n++){
            d = sc.nextInt();
            int[] A = new int[(int)d];
                for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                }
        }
        
        for(int i = 0; i < N ;i++){
            ans = ans + C[i];
        }        
        System.out.println(ans);
    
    } 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; d int ans = 0; ans 0 int[] C = new int[(int) N]; C new int[(int) N] (int) N for(int i = 0; i < N ; i++){
            C[i] = 1;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            C[i] = 1;
        } {
            C[i] = 1;
        } C[i] = 1 C[i] C i 1 for(int n = 0; n < K ; n++){
            d = sc.nextInt();
            int[] A = new int[(int)d];
                for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                }
        } int n = 0; int n = 0; n 0 n < K n K n++ n++ n {
            d = sc.nextInt();
            int[] A = new int[(int)d];
                for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                }
        } {
            d = sc.nextInt();
            int[] A = new int[(int)d];
                for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                }
        } d = sc.nextInt() d sc.nextInt() sc.nextInt sc int[] A = new int[(int)d]; A new int[(int)d] (int)d for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                } int i = 0 ; int i = 0 ; i 0 i < d i d i++ i++ i {
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                } {
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                } A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc C[A[i] - 1] = 0 C[A[i] - 1] C A[i] - 1 A[i] A i 1 0 for(int i = 0; i < N ;i++){
            ans = ans + C[i];
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            ans = ans + C[i];
        } {
            ans = ans + C[i];
        } ans = ans + C[i] ans ans + C[i] ans C[i] C i System.out.println(ans) System.out.println System.out System System.out ans 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;
        int ans = 0;
        
        int[] C = new int[(int) N];
        for(int i = 0; i < N ; i++){
            C[i] = 1;
        }
        for(int n = 0; n < K ; n++){
            d = sc.nextInt();
            int[] A = new int[(int)d];
                for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                }
        }
        
        for(int i = 0; i < N ;i++){
            ans = ans + C[i];
        }        
        System.out.println(ans);
    
    }
} 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;
        int ans = 0;
        
        int[] C = new int[(int) N];
        for(int i = 0; i < N ; i++){
            C[i] = 1;
        }
        for(int n = 0; n < K ; n++){
            d = sc.nextInt();
            int[] A = new int[(int)d];
                for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                }
        }
        
        for(int i = 0; i < N ;i++){
            ans = ans + C[i];
        }        
        System.out.println(ans);
    
    }
} Main
import java.util.Scanner;
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;
        int ans = 0;
        
        int[] C = new int[(int) N];
        for(int i = 0; i < N ; i++){
            C[i] = 1;
        }
        for(int n = 0; n < K ; n++){
            d = sc.nextInt();
            int[] A = new int[(int)d];
                for(int i = 0 ; i < d ; i++){
                    A[i] = sc.nextInt();
                    C[A[i] - 1] = 0;
                    
                }
        }
        
        for(int i = 0; i < N ;i++){
            ans = ans + C[i];
        }        
        System.out.println(ans);
    
    }
}