import java.util.Scanner;

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

        for (int i = 0; i < K; i++) {
            d[i] = s.nextInt();
            for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            }
        }

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

        s.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int K = s.nextInt();
        int d[] = new int[K];
        int A[] = new int[N];

        for (int i = 0; i < K; i++) {
            d[i] = s.nextInt();
            for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            }
        }

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

        s.close();
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int K = s.nextInt();
        int d[] = new int[K];
        int A[] = new int[N];

        for (int i = 0; i < K; i++) {
            d[i] = s.nextInt();
            for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            }
        }

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

        s.close();
    } main {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int K = s.nextInt();
        int d[] = new int[K];
        int A[] = new int[N];

        for (int i = 0; i < K; i++) {
            d[i] = s.nextInt();
            for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            }
        }

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

        s.close();
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int N = s.nextInt(); N s.nextInt() s.nextInt s int K = s.nextInt(); K s.nextInt() s.nextInt s int d[] = new int[K]; d new int[K] K int A[] = new int[N]; A new int[N] N for (int i = 0; i < K; i++) {
            d[i] = s.nextInt();
            for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            }
        } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
            d[i] = s.nextInt();
            for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            }
        } {
            d[i] = s.nextInt();
            for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            }
        } d[i] = s.nextInt() d[i] d i s.nextInt() s.nextInt s for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            } int j = 0; int j = 0; j 0 j < d[i] j d[i] d i j++ j++ j {
                int num = s.nextInt();
                A[num - 1] = 1;
            } {
                int num = s.nextInt();
                A[num - 1] = 1;
            } int num = s.nextInt(); num s.nextInt() s.nextInt s A[num - 1] = 1 A[num - 1] A num - 1 num 1 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] == 1) A[i] A i 1 {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count s.close() s.close s String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int K = s.nextInt();
        int d[] = new int[K];
        int A[] = new int[N];

        for (int i = 0; i < K; i++) {
            d[i] = s.nextInt();
            for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            }
        }

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

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

        for (int i = 0; i < K; i++) {
            d[i] = s.nextInt();
            for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            }
        }

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

        s.close();
    }
} Main
import java.util.Scanner;

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

        for (int i = 0; i < K; i++) {
            d[i] = s.nextInt();
            for (int j = 0; j < d[i]; j++) {
                int num = s.nextInt();
                A[num - 1] = 1;
            }
        }

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

        s.close();
    }
}