import 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();

        boolean[] b = new boolean[n];
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            }
        }
        sc.close();

        int count = 0;
        for (int i = 0; i < b.length; i++) {
            if (!b[i]) {
                count++;
            }
        }

        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        boolean[] b = new boolean[n];
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            }
        }
        sc.close();

        int count = 0;
        for (int i = 0; i < b.length; i++) {
            if (!b[i]) {
                count++;
            }
        }

        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();

        boolean[] b = new boolean[n];
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            }
        }
        sc.close();

        int count = 0;
        for (int i = 0; i < b.length; i++) {
            if (!b[i]) {
                count++;
            }
        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        boolean[] b = new boolean[n];
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            }
        }
        sc.close();

        int count = 0;
        for (int i = 0; i < b.length; i++) {
            if (!b[i]) {
                count++;
            }
        }

        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 boolean[] b = new boolean[n]; b new boolean[n] n for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            }
        } 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++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            }
        } {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            }
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
                int a = sc.nextInt();
                b[a - 1] = true;
            } {
                int a = sc.nextInt();
                b[a - 1] = true;
            } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc b[a - 1] = true b[a - 1] b a - 1 a 1 true sc.close() sc.close sc int count = 0; count 0 for (int i = 0; i < b.length; i++) {
            if (!b[i]) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < b.length i b.length b b.length i++ i++ i {
            if (!b[i]) {
                count++;
            }
        } {
            if (!b[i]) {
                count++;
            }
        } if (!b[i]) {
                count++;
            } !b[i] b[i] b 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 sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        boolean[] b = new boolean[n];
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            }
        }
        sc.close();

        int count = 0;
        for (int i = 0; i < b.length; i++) {
            if (!b[i]) {
                count++;
            }
        }

        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();

        boolean[] b = new boolean[n];
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            }
        }
        sc.close();

        int count = 0;
        for (int i = 0; i < b.length; i++) {
            if (!b[i]) {
                count++;
            }
        }

        System.out.println(count);
    }
} Main
import 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();

        boolean[] b = new boolean[n];
        for (int i = 0; i < k; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int a = sc.nextInt();
                b[a - 1] = true;
            }
        }
        sc.close();

        int count = 0;
        for (int i = 0; i < b.length; i++) {
            if (!b[i]) {
                count++;
            }
        }

        System.out.println(count);
    }
}
