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


        int[] A = new int[N];
        for (int i = 0;i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            }
        }

        int count = 0;
        for (int i = 0;i < N; i++) {
            if(A[i] != 1) {
                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();


        int[] A = new int[N];
        for (int i = 0;i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            }
        }

        int count = 0;
        for (int i = 0;i < N; i++) {
            if(A[i] != 1) {
                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();


        int[] A = new int[N];
        for (int i = 0;i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            }
        }

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


        int[] A = new int[N];
        for (int i = 0;i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            }
        }

        int count = 0;
        for (int i = 0;i < N; i++) {
            if(A[i] != 1) {
                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 int[] A = new int[N]; A new int[N] N for (int i = 0;i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            }
        } 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 nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            }
        } {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            }
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            } {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            } int nsunuke = sc.nextInt() - 1; nsunuke sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 A[nsunuke] = 1 A[nsunuke] A nsunuke 1 int count = 0; count 0 for (int i = 0;i < N; i++) {
            if(A[i] != 1) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if(A[i] != 1) {
                count++;
            }
        } {
            if(A[i] != 1) {
                count++;
            }
        } if(A[i] != 1) {
                count++;
            } A[i] != 1 A[i] A i 1 {
                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();


        int[] A = new int[N];
        for (int i = 0;i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            }
        }

        int count = 0;
        for (int i = 0;i < N; i++) {
            if(A[i] != 1) {
                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();


        int[] A = new int[N];
        for (int i = 0;i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            }
        }

        int count = 0;
        for (int i = 0;i < N; i++) {
            if(A[i] != 1) {
                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();


        int[] A = new int[N];
        for (int i = 0;i < K; i++) {
            int d = sc.nextInt();
            for (int j = 0; j < d; j++) {
                int nsunuke = sc.nextInt() - 1;
                A[nsunuke] = 1;
            }
        }

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