import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
int N= scan.nextInt();
        int K= scan.nextInt();
        int A[]= new int[N];
int i=0;

        while (i<K){int D=scan.nextInt();
            int i1=0;

            while(i1<D){
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            }
            i=i+1;


        }
        int i2=0;
        int i3=0;

        while (i2<N){
            if(A[i2]==0){i3=i3+1;};
            i2=i2+1;

        }

System.out.println(i3);
    }
} import java.util.Scanner; Scanner 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 A[]= new int[N];
int i=0;

        while (i<K){int D=scan.nextInt();
            int i1=0;

            while(i1<D){
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            }
            i=i+1;


        }
        int i2=0;
        int i3=0;

        while (i2<N){
            if(A[i2]==0){i3=i3+1;};
            i2=i2+1;

        }

System.out.println(i3);
    }
} Main public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
int N= scan.nextInt();
        int K= scan.nextInt();
        int A[]= new int[N];
int i=0;

        while (i<K){int D=scan.nextInt();
            int i1=0;

            while(i1<D){
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            }
            i=i+1;


        }
        int i2=0;
        int i3=0;

        while (i2<N){
            if(A[i2]==0){i3=i3+1;};
            i2=i2+1;

        }

System.out.println(i3);
    } main {
        Scanner scan=new Scanner(System.in);
int N= scan.nextInt();
        int K= scan.nextInt();
        int A[]= new int[N];
int i=0;

        while (i<K){int D=scan.nextInt();
            int i1=0;

            while(i1<D){
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            }
            i=i+1;


        }
        int i2=0;
        int i3=0;

        while (i2<N){
            if(A[i2]==0){i3=i3+1;};
            i2=i2+1;

        }

System.out.println(i3);
    } 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 A[]= new int[N]; A new int[N] N int i=0; i 0 while (i<K){int D=scan.nextInt();
            int i1=0;

            while(i1<D){
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            }
            i=i+1;


        } i<K i K {int D=scan.nextInt();
            int i1=0;

            while(i1<D){
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            }
            i=i+1;


        } int D=scan.nextInt(); D scan.nextInt() scan.nextInt scan int i1=0; i1 0 while(i1<D){
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            } i1<D i1 D {
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            } int i4=scan.nextInt()-1; i4 scan.nextInt()-1 scan.nextInt() scan.nextInt scan 1 A[i4]=A[i4]+1 A[i4] A i4 A[i4]+1 A[i4] A i4 1 i1=i1+1 i1 i1+1 i1 1 i=i+1 i i+1 i 1 int i2=0; i2 0 int i3=0; i3 0 while (i2<N){
            if(A[i2]==0){i3=i3+1;};
            i2=i2+1;

        } i2<N i2 N {
            if(A[i2]==0){i3=i3+1;};
            i2=i2+1;

        } if(A[i2]==0){i3=i3+1;} A[i2]==0 A[i2] A i2 0 {i3=i3+1;} i3=i3+1 i3 i3+1 i3 1 i2=i2+1 i2 i2+1 i2 1 System.out.println(i3) System.out.println System.out System System.out i3 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 A[]= new int[N];
int i=0;

        while (i<K){int D=scan.nextInt();
            int i1=0;

            while(i1<D){
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            }
            i=i+1;


        }
        int i2=0;
        int i3=0;

        while (i2<N){
            if(A[i2]==0){i3=i3+1;};
            i2=i2+1;

        }

System.out.println(i3);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
int N= scan.nextInt();
        int K= scan.nextInt();
        int A[]= new int[N];
int i=0;

        while (i<K){int D=scan.nextInt();
            int i1=0;

            while(i1<D){
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            }
            i=i+1;


        }
        int i2=0;
        int i3=0;

        while (i2<N){
            if(A[i2]==0){i3=i3+1;};
            i2=i2+1;

        }

System.out.println(i3);
    }
} Main
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
int N= scan.nextInt();
        int K= scan.nextInt();
        int A[]= new int[N];
int i=0;

        while (i<K){int D=scan.nextInt();
            int i1=0;

            while(i1<D){
                int i4=scan.nextInt()-1;

                A[i4]=A[i4]+1;
            i1=i1+1;


            }
            i=i+1;


        }
        int i2=0;
        int i3=0;

        while (i2<N){
            if(A[i2]==0){i3=i3+1;};
            i2=i2+1;

        }

System.out.println(i3);
    }
}
