import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();

        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                list.add(sc.nextInt());
            }
        }

        int count = 0;
        for (int k = 1; k <= N; k++) {
            if(!list.contains(k)) {
                count += 1;
            }
        }
        System.out.println(count);
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();

        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                list.add(sc.nextInt());
            }
        }

        int count = 0;
        for (int k = 1; k <= N; k++) {
            if(!list.contains(k)) {
                count += 1;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();

        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                list.add(sc.nextInt());
            }
        }

        int count = 0;
        for (int k = 1; k <= N; k++) {
            if(!list.contains(k)) {
                count += 1;
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();

        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                list.add(sc.nextInt());
            }
        }

        int count = 0;
        for (int k = 1; k <= N; k++) {
            if(!list.contains(k)) {
                count += 1;
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc List<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                list.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++) {
                list.add(sc.nextInt());
            }
        } {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                list.add(sc.nextInt());
            }
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
                list.add(sc.nextInt());
            } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
                list.add(sc.nextInt());
            } {
                list.add(sc.nextInt());
            } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc int count = 0; count 0 for (int k = 1; k <= N; k++) {
            if(!list.contains(k)) {
                count += 1;
            }
        } int k = 1; int k = 1; k 1 k <= N k N k++ k++ k {
            if(!list.contains(k)) {
                count += 1;
            }
        } {
            if(!list.contains(k)) {
                count += 1;
            }
        } if(!list.contains(k)) {
                count += 1;
            } !list.contains(k) list.contains(k) list.contains list k {
                count += 1;
            } count += 1 count 1 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) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();

        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                list.add(sc.nextInt());
            }
        }

        int count = 0;
        for (int k = 1; k <= N; k++) {
            if(!list.contains(k)) {
                count += 1;
            }
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();

        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                list.add(sc.nextInt());
            }
        }

        int count = 0;
        for (int k = 1; k <= N; k++) {
            if(!list.contains(k)) {
                count += 1;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();

        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                list.add(sc.nextInt());
            }
        }

        int count = 0;
        for (int k = 1; k <= N; k++) {
            if(!list.contains(k)) {
                count += 1;
            }
        }
        System.out.println(count);
    }
}