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 goal[]=new int[n];
        for (int i=0;i<n;i++){
            goal[i]=0;
        }
        for (int i=1;i<=k;i++){
            int d=sc.nextInt();
            for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            }
        }

int num=0;
        for (int i=0;i<n;i++){
            if(goal[i]==0){
                num++;
            }
        }

   System.out.println(num);











    }
} 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 goal[]=new int[n];
        for (int i=0;i<n;i++){
            goal[i]=0;
        }
        for (int i=1;i<=k;i++){
            int d=sc.nextInt();
            for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            }
        }

int num=0;
        for (int i=0;i<n;i++){
            if(goal[i]==0){
                num++;
            }
        }

   System.out.println(num);











    }
} Main public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        int goal[]=new int[n];
        for (int i=0;i<n;i++){
            goal[i]=0;
        }
        for (int i=1;i<=k;i++){
            int d=sc.nextInt();
            for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            }
        }

int num=0;
        for (int i=0;i<n;i++){
            if(goal[i]==0){
                num++;
            }
        }

   System.out.println(num);











    } main {
       Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        int goal[]=new int[n];
        for (int i=0;i<n;i++){
            goal[i]=0;
        }
        for (int i=1;i<=k;i++){
            int d=sc.nextInt();
            for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            }
        }

int num=0;
        for (int i=0;i<n;i++){
            if(goal[i]==0){
                num++;
            }
        }

   System.out.println(num);











    } 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 goal[]=new int[n]; goal new int[n] n for (int i=0;i<n;i++){
            goal[i]=0;
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            goal[i]=0;
        } {
            goal[i]=0;
        } goal[i]=0 goal[i] goal i 0 for (int i=1;i<=k;i++){
            int d=sc.nextInt();
            for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            }
        } int i=1; int i=1; i 1 i<=k i k i++ i++ i {
            int d=sc.nextInt();
            for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            }
        } {
            int d=sc.nextInt();
            for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            }
        } int d=sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            } int j=0; int j=0; j 0 j<d j d j++ j++ j {
                goal[sc.nextInt()-1]++;
            } {
                goal[sc.nextInt()-1]++;
            } goal[sc.nextInt()-1]++ goal[sc.nextInt()-1] goal sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 int num=0; num 0 for (int i=0;i<n;i++){
            if(goal[i]==0){
                num++;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if(goal[i]==0){
                num++;
            }
        } {
            if(goal[i]==0){
                num++;
            }
        } if(goal[i]==0){
                num++;
            } goal[i]==0 goal[i] goal i 0 {
                num++;
            } num++ num System.out.println(num) System.out.println System.out System System.out num 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 goal[]=new int[n];
        for (int i=0;i<n;i++){
            goal[i]=0;
        }
        for (int i=1;i<=k;i++){
            int d=sc.nextInt();
            for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            }
        }

int num=0;
        for (int i=0;i<n;i++){
            if(goal[i]==0){
                num++;
            }
        }

   System.out.println(num);











    }
} public class Main {
    public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        int goal[]=new int[n];
        for (int i=0;i<n;i++){
            goal[i]=0;
        }
        for (int i=1;i<=k;i++){
            int d=sc.nextInt();
            for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            }
        }

int num=0;
        for (int i=0;i<n;i++){
            if(goal[i]==0){
                num++;
            }
        }

   System.out.println(num);











    }
} 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 goal[]=new int[n];
        for (int i=0;i<n;i++){
            goal[i]=0;
        }
        for (int i=1;i<=k;i++){
            int d=sc.nextInt();
            for(int j=0;j<d;j++){
                goal[sc.nextInt()-1]++;
            }
        }

int num=0;
        for (int i=0;i<n;i++){
            if(goal[i]==0){
                num++;
            }
        }

   System.out.println(num);











    }
}
