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();
		int d[] = new int[101];
		int cnt[] = new int[101];
		int n = 0;
		int cntA = 0;
		
		for(int i=0; i<K; i++){
			d[i] = sc.nextInt();
			for(int j =0; j<d[i]; j++) {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			}
		}		
		
		for(int i=0; i<N; i++) {
			if(cnt[i] == 0) {
				cntA +=1;
			}
		}

		System.out.println(cntA);
		sc.close();
	}
} 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();
		int d[] = new int[101];
		int cnt[] = new int[101];
		int n = 0;
		int cntA = 0;
		
		for(int i=0; i<K; i++){
			d[i] = sc.nextInt();
			for(int j =0; j<d[i]; j++) {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			}
		}		
		
		for(int i=0; i<N; i++) {
			if(cnt[i] == 0) {
				cntA +=1;
			}
		}

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

		System.out.println(cntA);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int d[] = new int[101];
		int cnt[] = new int[101];
		int n = 0;
		int cntA = 0;
		
		for(int i=0; i<K; i++){
			d[i] = sc.nextInt();
			for(int j =0; j<d[i]; j++) {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			}
		}		
		
		for(int i=0; i<N; i++) {
			if(cnt[i] == 0) {
				cntA +=1;
			}
		}

		System.out.println(cntA);
		sc.close();
	} 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[] = new int[101]; d new int[101] 101 int cnt[] = new int[101]; cnt new int[101] 101 int n = 0; n 0 int cntA = 0; cntA 0 for(int i=0; i<K; i++){
			d[i] = sc.nextInt();
			for(int j =0; j<d[i]; j++) {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			}
		} int i=0; int i=0; i 0 i<K i K i++ i++ i {
			d[i] = sc.nextInt();
			for(int j =0; j<d[i]; j++) {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			}
		} {
			d[i] = sc.nextInt();
			for(int j =0; j<d[i]; j++) {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			}
		} d[i] = sc.nextInt() d[i] d i sc.nextInt() sc.nextInt sc for(int j =0; j<d[i]; j++) {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			} int j =0; int j =0; j 0 j<d[i] j d[i] d i j++ j++ j {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			} {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			} n =sc.nextInt() n sc.nextInt() sc.nextInt sc cnt[n-1] = cnt[n-1]+1 cnt[n-1] cnt n-1 n 1 cnt[n-1]+1 cnt[n-1] cnt n-1 n 1 1 for(int i=0; i<N; i++) {
			if(cnt[i] == 0) {
				cntA +=1;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			if(cnt[i] == 0) {
				cntA +=1;
			}
		} {
			if(cnt[i] == 0) {
				cntA +=1;
			}
		} if(cnt[i] == 0) {
				cntA +=1;
			} cnt[i] == 0 cnt[i] cnt i 0 {
				cntA +=1;
			} cntA +=1 cntA 1 System.out.println(cntA) System.out.println System.out System System.out cntA sc.close() sc.close sc 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[] = new int[101];
		int cnt[] = new int[101];
		int n = 0;
		int cntA = 0;
		
		for(int i=0; i<K; i++){
			d[i] = sc.nextInt();
			for(int j =0; j<d[i]; j++) {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			}
		}		
		
		for(int i=0; i<N; i++) {
			if(cnt[i] == 0) {
				cntA +=1;
			}
		}

		System.out.println(cntA);
		sc.close();
	}
} 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[] = new int[101];
		int cnt[] = new int[101];
		int n = 0;
		int cntA = 0;
		
		for(int i=0; i<K; i++){
			d[i] = sc.nextInt();
			for(int j =0; j<d[i]; j++) {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			}
		}		
		
		for(int i=0; i<N; i++) {
			if(cnt[i] == 0) {
				cntA +=1;
			}
		}

		System.out.println(cntA);
		sc.close();
	}
} 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();
		int d[] = new int[101];
		int cnt[] = new int[101];
		int n = 0;
		int cntA = 0;
		
		for(int i=0; i<K; i++){
			d[i] = sc.nextInt();
			for(int j =0; j<d[i]; j++) {
				n =sc.nextInt();
				cnt[n-1] = cnt[n-1]+1;
			}
		}		
		
		for(int i=0; i<N; i++) {
			if(cnt[i] == 0) {
				cntA +=1;
			}
		}

		System.out.println(cntA);
		sc.close();
	}
}