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

        boolean[] na = new boolean[N + 1];
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                na[sc.nextInt()] = true;
            }
        }
        int count = 0;
        for (int i = 1; i <= N; i++) {
            count += !na[i] ? 1 : 0;
        }
        System.out.println(count);
    }
} 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();

        boolean[] na = new boolean[N + 1];
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                na[sc.nextInt()] = true;
            }
        }
        int count = 0;
        for (int i = 1; i <= N; i++) {
            count += !na[i] ? 1 : 0;
        }
        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[] na = new boolean[N + 1];
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                na[sc.nextInt()] = true;
            }
        }
        int count = 0;
        for (int i = 1; i <= N; i++) {
            count += !na[i] ? 1 : 0;
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();

        boolean[] na = new boolean[N + 1];
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                na[sc.nextInt()] = true;
            }
        }
        int count = 0;
        for (int i = 1; i <= N; i++) {
            count += !na[i] ? 1 : 0;
        }
        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[] na = new boolean[N + 1]; na new boolean[N + 1] N + 1 N 1 for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                na[sc.nextInt()] = 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++) {
                na[sc.nextInt()] = true;
            }
        } {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                na[sc.nextInt()] = true;
            }
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
                na[sc.nextInt()] = true;
            } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
                na[sc.nextInt()] = true;
            } {
                na[sc.nextInt()] = true;
            } na[sc.nextInt()] = true na[sc.nextInt()] na sc.nextInt() sc.nextInt sc true int count = 0; count 0 for (int i = 1; i <= N; i++) {
            count += !na[i] ? 1 : 0;
        } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
            count += !na[i] ? 1 : 0;
        } {
            count += !na[i] ? 1 : 0;
        } count += !na[i] ? 1 : 0 count !na[i] ? 1 : 0 !na[i] na[i] na i 1 0 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[] na = new boolean[N + 1];
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                na[sc.nextInt()] = true;
            }
        }
        int count = 0;
        for (int i = 1; i <= N; i++) {
            count += !na[i] ? 1 : 0;
        }
        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[] na = new boolean[N + 1];
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                na[sc.nextInt()] = true;
            }
        }
        int count = 0;
        for (int i = 1; i <= N; i++) {
            count += !na[i] ? 1 : 0;
        }
        System.out.println(count);
    }
} Main
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();

        boolean[] na = new boolean[N + 1];
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                na[sc.nextInt()] = true;
            }
        }
        int count = 0;
        for (int i = 1; i <= N; i++) {
            count += !na[i] ? 1 : 0;
        }
        System.out.println(count);
    }
}