import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        Boolean[] s = new Boolean[n];
        Arrays.fill(s, false);
        for (int i = 0; i < k; i++) {
            int d = Integer.parseInt(sc.next());
            for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            }
        }
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (!s[i]) {
                c++;
            }
        }
        System.out.println(c);
    }
} import java.util.Arrays; Arrays 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 = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        Boolean[] s = new Boolean[n];
        Arrays.fill(s, false);
        for (int i = 0; i < k; i++) {
            int d = Integer.parseInt(sc.next());
            for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            }
        }
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (!s[i]) {
                c++;
            }
        }
        System.out.println(c);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        Boolean[] s = new Boolean[n];
        Arrays.fill(s, false);
        for (int i = 0; i < k; i++) {
            int d = Integer.parseInt(sc.next());
            for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            }
        }
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (!s[i]) {
                c++;
            }
        }
        System.out.println(c);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        Boolean[] s = new Boolean[n];
        Arrays.fill(s, false);
        for (int i = 0; i < k; i++) {
            int d = Integer.parseInt(sc.next());
            for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            }
        }
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (!s[i]) {
                c++;
            }
        }
        System.out.println(c);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int k = Integer.parseInt(sc.next()); k Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Boolean[] s = new Boolean[n]; s new Boolean[n] n Arrays.fill(s, false) Arrays.fill Arrays s false for (int i = 0; i < k; i++) {
            int d = Integer.parseInt(sc.next());
            for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            }
        } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
            int d = Integer.parseInt(sc.next());
            for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            }
        } {
            int d = Integer.parseInt(sc.next());
            for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            }
        } int d = Integer.parseInt(sc.next()); d Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            } {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            } int a = Integer.parseInt(sc.next()) - 1; a Integer.parseInt(sc.next()) - 1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc 1 s[a] = true s[a] s a true int c = 0; c 0 for (int i = 0; i < n; i++) {
            if (!s[i]) {
                c++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (!s[i]) {
                c++;
            }
        } {
            if (!s[i]) {
                c++;
            }
        } if (!s[i]) {
                c++;
            } !s[i] s[i] s i {
                c++;
            } c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        Boolean[] s = new Boolean[n];
        Arrays.fill(s, false);
        for (int i = 0; i < k; i++) {
            int d = Integer.parseInt(sc.next());
            for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            }
        }
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (!s[i]) {
                c++;
            }
        }
        System.out.println(c);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        Boolean[] s = new Boolean[n];
        Arrays.fill(s, false);
        for (int i = 0; i < k; i++) {
            int d = Integer.parseInt(sc.next());
            for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            }
        }
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (!s[i]) {
                c++;
            }
        }
        System.out.println(c);
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        Boolean[] s = new Boolean[n];
        Arrays.fill(s, false);
        for (int i = 0; i < k; i++) {
            int d = Integer.parseInt(sc.next());
            for (int j = 0; j < d; j++) {
                int a = Integer.parseInt(sc.next()) - 1;
                s[a] = true;
            }
        }
        int c = 0;
        for (int i = 0; i < n; i++) {
            if (!s[i]) {
                c++;
            }
        }
        System.out.println(c);
    }
}