import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int M = scn.nextInt();
        boolean[] nusuke = new boolean[N];
        int a = 0;
        //M回ループ
        for(int i=0;i<M;i++){
            int d = scn.nextInt();
            //d回ループ
            for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            }
        }

        int cnt = 0;

        for(int i=0;i<N;i++){
            if(nusuke[i] == false){
                cnt++;
            }
        }

        System.out.println(cnt);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int M = scn.nextInt();
        boolean[] nusuke = new boolean[N];
        int a = 0;
        //M回ループ
        for(int i=0;i<M;i++){
            int d = scn.nextInt();
            //d回ループ
            for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            }
        }

        int cnt = 0;

        for(int i=0;i<N;i++){
            if(nusuke[i] == false){
                cnt++;
            }
        }

        System.out.println(cnt);
    }
} Main public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int M = scn.nextInt();
        boolean[] nusuke = new boolean[N];
        int a = 0;
        //M回ループ
        for(int i=0;i<M;i++){
            int d = scn.nextInt();
            //d回ループ
            for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            }
        }

        int cnt = 0;

        for(int i=0;i<N;i++){
            if(nusuke[i] == false){
                cnt++;
            }
        }

        System.out.println(cnt);
    } main {
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int M = scn.nextInt();
        boolean[] nusuke = new boolean[N];
        int a = 0;
        //M回ループ
        for(int i=0;i<M;i++){
            int d = scn.nextInt();
            //d回ループ
            for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            }
        }

        int cnt = 0;

        for(int i=0;i<N;i++){
            if(nusuke[i] == false){
                cnt++;
            }
        }

        System.out.println(cnt);
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int N = scn.nextInt(); N scn.nextInt() scn.nextInt scn int M = scn.nextInt(); M scn.nextInt() scn.nextInt scn boolean[] nusuke = new boolean[N]; nusuke new boolean[N] N int a = 0; a 0 for(int i=0;i<M;i++){
            int d = scn.nextInt();
            //d回ループ
            for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            }
        } int i=0; int i=0; i 0 i<M i M i++ i++ i {
            int d = scn.nextInt();
            //d回ループ
            for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            }
        } {
            int d = scn.nextInt();
            //d回ループ
            for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            }
        } int d = scn.nextInt(); d scn.nextInt() scn.nextInt scn for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            } int k=0; int k=0; k 0 k<d k d k++ k++ k {
                a = scn.nextInt();
                nusuke[a-1] = true;
            } {
                a = scn.nextInt();
                nusuke[a-1] = true;
            } a = scn.nextInt() a scn.nextInt() scn.nextInt scn nusuke[a-1] = true nusuke[a-1] nusuke a-1 a 1 true int cnt = 0; cnt 0 for(int i=0;i<N;i++){
            if(nusuke[i] == false){
                cnt++;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            if(nusuke[i] == false){
                cnt++;
            }
        } {
            if(nusuke[i] == false){
                cnt++;
            }
        } if(nusuke[i] == false){
                cnt++;
            } nusuke[i] == false nusuke[i] nusuke i false {
                cnt++;
            } cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main{
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int M = scn.nextInt();
        boolean[] nusuke = new boolean[N];
        int a = 0;
        //M回ループ
        for(int i=0;i<M;i++){
            int d = scn.nextInt();
            //d回ループ
            for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            }
        }

        int cnt = 0;

        for(int i=0;i<N;i++){
            if(nusuke[i] == false){
                cnt++;
            }
        }

        System.out.println(cnt);
    }
} public class Main{
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int M = scn.nextInt();
        boolean[] nusuke = new boolean[N];
        int a = 0;
        //M回ループ
        for(int i=0;i<M;i++){
            int d = scn.nextInt();
            //d回ループ
            for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            }
        }

        int cnt = 0;

        for(int i=0;i<N;i++){
            if(nusuke[i] == false){
                cnt++;
            }
        }

        System.out.println(cnt);
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int M = scn.nextInt();
        boolean[] nusuke = new boolean[N];
        int a = 0;
        //M回ループ
        for(int i=0;i<M;i++){
            int d = scn.nextInt();
            //d回ループ
            for(int k=0;k<d;k++){
                a = scn.nextInt();
                nusuke[a-1] = true;
            }
        }

        int cnt = 0;

        for(int i=0;i<N;i++){
            if(nusuke[i] == false){
                cnt++;
            }
        }

        System.out.println(cnt);
    }
}