import java.util.*;

class Main {
	public static void main(String[] args) {
        //ArrayList<Integer> array = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int ans[] = new int[N+1];
        int sum = 0;
        for(int i=0; i<K; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for(int j=0;j<d; j++) {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            }
            //array.add(A[i]);
        }
        //System.out.println(N-array.size());
        for(int i=1;i<N+1;i++) {
            if(ans[i] == 0) sum++;
        }
        System.out.println(sum);
	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args) {
        //ArrayList<Integer> array = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int ans[] = new int[N+1];
        int sum = 0;
        for(int i=0; i<K; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for(int j=0;j<d; j++) {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            }
            //array.add(A[i]);
        }
        //System.out.println(N-array.size());
        for(int i=1;i<N+1;i++) {
            if(ans[i] == 0) sum++;
        }
        System.out.println(sum);
	}
} Main public static void main(String[] args) {
        //ArrayList<Integer> array = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int ans[] = new int[N+1];
        int sum = 0;
        for(int i=0; i<K; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for(int j=0;j<d; j++) {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            }
            //array.add(A[i]);
        }
        //System.out.println(N-array.size());
        for(int i=1;i<N+1;i++) {
            if(ans[i] == 0) sum++;
        }
        System.out.println(sum);
	} main {
        //ArrayList<Integer> array = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int ans[] = new int[N+1];
        int sum = 0;
        for(int i=0; i<K; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for(int j=0;j<d; j++) {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            }
            //array.add(A[i]);
        }
        //System.out.println(N-array.size());
        for(int i=1;i<N+1;i++) {
            if(ans[i] == 0) sum++;
        }
        System.out.println(sum);
	} 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 ans[] = new int[N+1]; ans new int[N+1] N+1 N 1 int sum = 0; sum 0 for(int i=0; i<K; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for(int j=0;j<d; j++) {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            }
            //array.add(A[i]);
        } int i=0; int i=0; i 0 i<K i K i++ i++ i {
            int d = sc.nextInt();
            int[] A = new int[d];
            for(int j=0;j<d; j++) {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            }
            //array.add(A[i]);
        } {
            int d = sc.nextInt();
            int[] A = new int[d];
            for(int j=0;j<d; j++) {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            }
            //array.add(A[i]);
        } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc int[] A = new int[d]; A new int[d] d for(int j=0;j<d; j++) {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            } int j=0; int j=0; j 0 j<d j d j++ j++ j {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            } {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            } A[j] = sc.nextInt() A[j] A j sc.nextInt() sc.nextInt sc ans[A[j]]++ ans[A[j]] ans A[j] A j for(int i=1;i<N+1;i++) {
            if(ans[i] == 0) sum++;
        } int i=1; int i=1; i 1 i<N+1 i N+1 N 1 i++ i++ i {
            if(ans[i] == 0) sum++;
        } {
            if(ans[i] == 0) sum++;
        } if(ans[i] == 0) sum++; ans[i] == 0 ans[i] ans i 0 sum++ sum System.out.println(sum) System.out.println System.out System System.out sum String[] args args
import java.util.*;

class Main {
	public static void main(String[] args) {
        //ArrayList<Integer> array = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int ans[] = new int[N+1];
        int sum = 0;
        for(int i=0; i<K; i++) {
            int d = sc.nextInt();
            int[] A = new int[d];
            for(int j=0;j<d; j++) {
                A[j] = sc.nextInt();
                ans[A[j]]++;
            }
            //array.add(A[i]);
        }
        //System.out.println(N-array.size());
        for(int i=1;i<N+1;i++) {
            if(ans[i] == 0) sum++;
        }
        System.out.println(sum);
	}
}