import java.util.HashSet;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();
            HashSet<Integer> set = new HashSet<Integer>();
            for (int i = 0; i < K; i++) {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            }
            System.out.println(N - set.size());
        }
    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();
            HashSet<Integer> set = new HashSet<Integer>();
            for (int i = 0; i < K; i++) {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            }
            System.out.println(N - set.size());
        }
    }
} Main public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();
            HashSet<Integer> set = new HashSet<Integer>();
            for (int i = 0; i < K; i++) {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            }
            System.out.println(N - set.size());
        }
    } main {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();
            HashSet<Integer> set = new HashSet<Integer>();
            for (int i = 0; i < K; i++) {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            }
            System.out.println(N - set.size());
        }
    } try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();
            HashSet<Integer> set = new HashSet<Integer>();
            for (int i = 0; i < K; i++) {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            }
            System.out.println(N - set.size());
        } {
            int N = sc.nextInt();
            int K = sc.nextInt();
            HashSet<Integer> set = new HashSet<Integer>();
            for (int i = 0; i < K; i++) {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            }
            System.out.println(N - set.size());
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc HashSet<Integer> set = new HashSet<Integer>(); set new HashSet<Integer>() for (int i = 0; i < K; i++) {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            } {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
                    set.add(sc.nextInt());
                } {
                    set.add(sc.nextInt());
                } set.add(sc.nextInt()) set.add set sc.nextInt() sc.nextInt sc System.out.println(N - set.size()) System.out.println System.out System System.out N - set.size() N set.size() set.size set String[] args args public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();
            HashSet<Integer> set = new HashSet<Integer>();
            for (int i = 0; i < K; i++) {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            }
            System.out.println(N - set.size());
        }
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();
            HashSet<Integer> set = new HashSet<Integer>();
            for (int i = 0; i < K; i++) {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            }
            System.out.println(N - set.size());
        }
    }
} Main
import java.util.HashSet;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();
            HashSet<Integer> set = new HashSet<Integer>();
            for (int i = 0; i < K; i++) {
                int d = sc.nextInt();
                for (int j = 0; j < d; j++) {
                    set.add(sc.nextInt());
                }
            }
            System.out.println(N - set.size());
        }
    }
}
