import java.util.Scanner;

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

        int snack, people;
        int count = 0;
        boolean[] snuke = new boolean[N];
        for (int i = 0; i < K; i++) {
            people = input.nextInt();
            for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            }
        }

        for (int i = 0; i < snuke.length; i++) {
            if (!snuke[i]) {
                count++;
            }
        }
        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int K = input.nextInt();

        int snack, people;
        int count = 0;
        boolean[] snuke = new boolean[N];
        for (int i = 0; i < K; i++) {
            people = input.nextInt();
            for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            }
        }

        for (int i = 0; i < snuke.length; i++) {
            if (!snuke[i]) {
                count++;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int K = input.nextInt();

        int snack, people;
        int count = 0;
        boolean[] snuke = new boolean[N];
        for (int i = 0; i < K; i++) {
            people = input.nextInt();
            for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            }
        }

        for (int i = 0; i < snuke.length; i++) {
            if (!snuke[i]) {
                count++;
            }
        }
        System.out.println(count);
    } main {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int K = input.nextInt();

        int snack, people;
        int count = 0;
        boolean[] snuke = new boolean[N];
        for (int i = 0; i < K; i++) {
            people = input.nextInt();
            for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            }
        }

        for (int i = 0; i < snuke.length; i++) {
            if (!snuke[i]) {
                count++;
            }
        }
        System.out.println(count);
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int N = input.nextInt(); N input.nextInt() input.nextInt input int K = input.nextInt(); K input.nextInt() input.nextInt input int snack snack people; people int count = 0; count 0 boolean[] snuke = new boolean[N]; snuke new boolean[N] N for (int i = 0; i < K; i++) {
            people = input.nextInt();
            for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            }
        } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
            people = input.nextInt();
            for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            }
        } {
            people = input.nextInt();
            for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            }
        } people = input.nextInt() people input.nextInt() input.nextInt input for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            } int j = 0; int j = 0; j 0 j < people j people j++ j++ j {
                snuke[input.nextInt() - 1] = true;
            } {
                snuke[input.nextInt() - 1] = true;
            } snuke[input.nextInt() - 1] = true snuke[input.nextInt() - 1] snuke input.nextInt() - 1 input.nextInt() input.nextInt input 1 true for (int i = 0; i < snuke.length; i++) {
            if (!snuke[i]) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < snuke.length i snuke.length snuke snuke.length i++ i++ i {
            if (!snuke[i]) {
                count++;
            }
        } {
            if (!snuke[i]) {
                count++;
            }
        } if (!snuke[i]) {
                count++;
            } !snuke[i] snuke[i] snuke 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) {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int K = input.nextInt();

        int snack, people;
        int count = 0;
        boolean[] snuke = new boolean[N];
        for (int i = 0; i < K; i++) {
            people = input.nextInt();
            for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            }
        }

        for (int i = 0; i < snuke.length; i++) {
            if (!snuke[i]) {
                count++;
            }
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.nextInt();
        int K = input.nextInt();

        int snack, people;
        int count = 0;
        boolean[] snuke = new boolean[N];
        for (int i = 0; i < K; i++) {
            people = input.nextInt();
            for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            }
        }

        for (int i = 0; i < snuke.length; i++) {
            if (!snuke[i]) {
                count++;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.Scanner;

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

        int snack, people;
        int count = 0;
        boolean[] snuke = new boolean[N];
        for (int i = 0; i < K; i++) {
            people = input.nextInt();
            for (int j = 0; j < people; j++) {
                snuke[input.nextInt() - 1] = true;
            }
        }

        for (int i = 0; i < snuke.length; i++) {
            if (!snuke[i]) {
                count++;
            }
        }
        System.out.println(count);
    }
}
