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 D = 0;
        int tmp = 0;
        int[] arrA = new int[N];
        int cnt = 0;

        for(int i = 0; i < K; i++) {
            D = sc.nextInt();
            for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            }
        }
        for(int i = 0; i < N; i++) {
            if(arrA[i] == 0) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} 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 D = 0;
        int tmp = 0;
        int[] arrA = new int[N];
        int cnt = 0;

        for(int i = 0; i < K; i++) {
            D = sc.nextInt();
            for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            }
        }
        for(int i = 0; i < N; i++) {
            if(arrA[i] == 0) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
        int K = sc.nextInt();

        int D = 0;
        int tmp = 0;
        int[] arrA = new int[N];
        int cnt = 0;

        for(int i = 0; i < K; i++) {
            D = sc.nextInt();
            for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            }
        }
        for(int i = 0; i < N; i++) {
            if(arrA[i] == 0) {
                cnt++;
            }
        }
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
        int K = sc.nextInt();

        int D = 0;
        int tmp = 0;
        int[] arrA = new int[N];
        int cnt = 0;

        for(int i = 0; i < K; i++) {
            D = sc.nextInt();
            for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            }
        }
        for(int i = 0; i < N; i++) {
            if(arrA[i] == 0) {
                cnt++;
            }
        }
        System.out.println(cnt);
    } 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 D = 0; D 0 int tmp = 0; tmp 0 int[] arrA = new int[N]; arrA new int[N] N int cnt = 0; cnt 0 for(int i = 0; i < K; i++) {
            D = sc.nextInt();
            for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            }
        } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
            D = sc.nextInt();
            for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            }
        } {
            D = sc.nextInt();
            for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            }
        } D = sc.nextInt() D sc.nextInt() sc.nextInt sc for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            } int j = 0; int j = 0; j 0 j < D j D j++ j++ j {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            } {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            } tmp = sc.nextInt() tmp sc.nextInt() sc.nextInt sc tmp-- tmp arrA[tmp]++ arrA[tmp] arrA tmp for(int i = 0; i < N; i++) {
            if(arrA[i] == 0) {
                cnt++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if(arrA[i] == 0) {
                cnt++;
            }
        } {
            if(arrA[i] == 0) {
                cnt++;
            }
        } if(arrA[i] == 0) {
                cnt++;
            } arrA[i] == 0 arrA[i] arrA i 0 {
                cnt++;
            } cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt 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 D = 0;
        int tmp = 0;
        int[] arrA = new int[N];
        int cnt = 0;

        for(int i = 0; i < K; i++) {
            D = sc.nextInt();
            for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            }
        }
        for(int i = 0; i < N; i++) {
            if(arrA[i] == 0) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
        int K = sc.nextInt();

        int D = 0;
        int tmp = 0;
        int[] arrA = new int[N];
        int cnt = 0;

        for(int i = 0; i < K; i++) {
            D = sc.nextInt();
            for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            }
        }
        for(int i = 0; i < N; i++) {
            if(arrA[i] == 0) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} 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 D = 0;
        int tmp = 0;
        int[] arrA = new int[N];
        int cnt = 0;

        for(int i = 0; i < K; i++) {
            D = sc.nextInt();
            for(int j = 0; j < D; j++) {
                tmp = sc.nextInt();
                tmp--;
                arrA[tmp]++;
            }
        }
        for(int i = 0; i < N; i++) {
            if(arrA[i] == 0) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
}
