import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        HashSet<Integer> hs = new HashSet<Integer>();
        int n=scan.nextInt();
        int k=scan.nextInt();
        for(int i=0;i<k;i++){
            int z=scan.nextInt();
            for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            }
        }
        System.out.println(n-hs.size());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        HashSet<Integer> hs = new HashSet<Integer>();
        int n=scan.nextInt();
        int k=scan.nextInt();
        for(int i=0;i<k;i++){
            int z=scan.nextInt();
            for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            }
        }
        System.out.println(n-hs.size());
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        HashSet<Integer> hs = new HashSet<Integer>();
        int n=scan.nextInt();
        int k=scan.nextInt();
        for(int i=0;i<k;i++){
            int z=scan.nextInt();
            for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            }
        }
        System.out.println(n-hs.size());
    } main {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        HashSet<Integer> hs = new HashSet<Integer>();
        int n=scan.nextInt();
        int k=scan.nextInt();
        for(int i=0;i<k;i++){
            int z=scan.nextInt();
            for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            }
        }
        System.out.println(n-hs.size());
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) HashSet<Integer> hs = new HashSet<Integer>(); hs new HashSet<Integer>() int n=scan.nextInt(); n scan.nextInt() scan.nextInt scan int k=scan.nextInt(); k scan.nextInt() scan.nextInt scan for(int i=0;i<k;i++){
            int z=scan.nextInt();
            for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            }
        } int i=0; int i=0; i 0 i<k i k i++ i++ i {
            int z=scan.nextInt();
            for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            }
        } {
            int z=scan.nextInt();
            for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            }
        } int z=scan.nextInt(); z scan.nextInt() scan.nextInt scan for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            } int j=0; int j=0; j 0 j<z j z j++ j++ j {
                int wk=scan.nextInt();
                hs.add(wk);
            } {
                int wk=scan.nextInt();
                hs.add(wk);
            } int wk=scan.nextInt(); wk scan.nextInt() scan.nextInt scan hs.add(wk) hs.add hs wk System.out.println(n-hs.size()) System.out.println System.out System System.out n-hs.size() n hs.size() hs.size hs String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        HashSet<Integer> hs = new HashSet<Integer>();
        int n=scan.nextInt();
        int k=scan.nextInt();
        for(int i=0;i<k;i++){
            int z=scan.nextInt();
            for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            }
        }
        System.out.println(n-hs.size());
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        HashSet<Integer> hs = new HashSet<Integer>();
        int n=scan.nextInt();
        int k=scan.nextInt();
        for(int i=0;i<k;i++){
            int z=scan.nextInt();
            for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            }
        }
        System.out.println(n-hs.size());
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        HashSet<Integer> hs = new HashSet<Integer>();
        int n=scan.nextInt();
        int k=scan.nextInt();
        for(int i=0;i<k;i++){
            int z=scan.nextInt();
            for(int j=0;j<z;j++){
                int wk=scan.nextInt();
                hs.add(wk);
            }
        }
        System.out.println(n-hs.size());
    }
}
