import java.util.Scanner;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner stdIn= new Scanner(System.in);
        int x = stdIn.nextInt();
        boolean [] xx=new boolean[x];
        int y = stdIn.nextInt();
        for(int i=0;i<y;i++){
            int z = stdIn.nextInt();
            for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            }
        }
        int count=0;
        for(int i=0;i<xx.length;i++){
            if(!xx[i]){
                count++;
            }
        }
        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner stdIn= new Scanner(System.in);
        int x = stdIn.nextInt();
        boolean [] xx=new boolean[x];
        int y = stdIn.nextInt();
        for(int i=0;i<y;i++){
            int z = stdIn.nextInt();
            for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            }
        }
        int count=0;
        for(int i=0;i<xx.length;i++){
            if(!xx[i]){
                count++;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner stdIn= new Scanner(System.in);
        int x = stdIn.nextInt();
        boolean [] xx=new boolean[x];
        int y = stdIn.nextInt();
        for(int i=0;i<y;i++){
            int z = stdIn.nextInt();
            for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            }
        }
        int count=0;
        for(int i=0;i<xx.length;i++){
            if(!xx[i]){
                count++;
            }
        }
        System.out.println(count);
    } main {
        Scanner stdIn= new Scanner(System.in);
        int x = stdIn.nextInt();
        boolean [] xx=new boolean[x];
        int y = stdIn.nextInt();
        for(int i=0;i<y;i++){
            int z = stdIn.nextInt();
            for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            }
        }
        int count=0;
        for(int i=0;i<xx.length;i++){
            if(!xx[i]){
                count++;
            }
        }
        System.out.println(count);
    } Scanner stdIn= new Scanner(System.in); stdIn new Scanner(System.in) int x = stdIn.nextInt(); x stdIn.nextInt() stdIn.nextInt stdIn boolean [] xx=new boolean[x]; xx new boolean[x] x int y = stdIn.nextInt(); y stdIn.nextInt() stdIn.nextInt stdIn for(int i=0;i<y;i++){
            int z = stdIn.nextInt();
            for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            }
        } int i=0; int i=0; i 0 i<y i y i++ i++ i {
            int z = stdIn.nextInt();
            for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            }
        } {
            int z = stdIn.nextInt();
            for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            }
        } int z = stdIn.nextInt(); z stdIn.nextInt() stdIn.nextInt stdIn for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            } int t=0; int t=0; t 0 t<z t z t++ t++ t {
               int a = stdIn.nextInt();
               xx[a-1]=true;
            } {
               int a = stdIn.nextInt();
               xx[a-1]=true;
            } int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn xx[a-1]=true xx[a-1] xx a-1 a 1 true int count=0; count 0 for(int i=0;i<xx.length;i++){
            if(!xx[i]){
                count++;
            }
        } int i=0; int i=0; i 0 i<xx.length i xx.length xx xx.length i++ i++ i {
            if(!xx[i]){
                count++;
            }
        } {
            if(!xx[i]){
                count++;
            }
        } if(!xx[i]){
                count++;
            } !xx[i] xx[i] xx i {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner stdIn= new Scanner(System.in);
        int x = stdIn.nextInt();
        boolean [] xx=new boolean[x];
        int y = stdIn.nextInt();
        for(int i=0;i<y;i++){
            int z = stdIn.nextInt();
            for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            }
        }
        int count=0;
        for(int i=0;i<xx.length;i++){
            if(!xx[i]){
                count++;
            }
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner stdIn= new Scanner(System.in);
        int x = stdIn.nextInt();
        boolean [] xx=new boolean[x];
        int y = stdIn.nextInt();
        for(int i=0;i<y;i++){
            int z = stdIn.nextInt();
            for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            }
        }
        int count=0;
        for(int i=0;i<xx.length;i++){
            if(!xx[i]){
                count++;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner stdIn= new Scanner(System.in);
        int x = stdIn.nextInt();
        boolean [] xx=new boolean[x];
        int y = stdIn.nextInt();
        for(int i=0;i<y;i++){
            int z = stdIn.nextInt();
            for(int t=0;t<z;t++){
               int a = stdIn.nextInt();
               xx[a-1]=true;
            }
        }
        int count=0;
        for(int i=0;i<xx.length;i++){
            if(!xx[i]){
                count++;
            }
        }
        System.out.println(count);
    }
}