import java.util.*;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N= keyboard.nextInt();
		int K= keyboard.nextInt();
		int[][] da = new int[K+1][N+1];
		int[] okashi = new int[N+1];
		
		for(int k=1; k<K+1; k++) {
			da[k][0]= keyboard.nextInt();
			for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			}
		}
		
		int ans =0;
		for(int i=1; i<N+1; i++) {
			if(okashi[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		keyboard.close();	
		
	}
} import java.util.*; util.* java public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N= keyboard.nextInt();
		int K= keyboard.nextInt();
		int[][] da = new int[K+1][N+1];
		int[] okashi = new int[N+1];
		
		for(int k=1; k<K+1; k++) {
			da[k][0]= keyboard.nextInt();
			for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			}
		}
		
		int ans =0;
		for(int i=1; i<N+1; i++) {
			if(okashi[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		keyboard.close();	
		
	}
} Main public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N= keyboard.nextInt();
		int K= keyboard.nextInt();
		int[][] da = new int[K+1][N+1];
		int[] okashi = new int[N+1];
		
		for(int k=1; k<K+1; k++) {
			da[k][0]= keyboard.nextInt();
			for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			}
		}
		
		int ans =0;
		for(int i=1; i<N+1; i++) {
			if(okashi[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		keyboard.close();	
		
	} main {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N= keyboard.nextInt();
		int K= keyboard.nextInt();
		int[][] da = new int[K+1][N+1];
		int[] okashi = new int[N+1];
		
		for(int k=1; k<K+1; k++) {
			da[k][0]= keyboard.nextInt();
			for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			}
		}
		
		int ans =0;
		for(int i=1; i<N+1; i++) {
			if(okashi[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		keyboard.close();	
		
	} Scanner keyboard = new Scanner(System.in); keyboard new Scanner(System.in) int N= keyboard.nextInt(); N keyboard.nextInt() keyboard.nextInt keyboard int K= keyboard.nextInt(); K keyboard.nextInt() keyboard.nextInt keyboard int[][] da = new int[K+1][N+1]; da new int[K+1][N+1] K+1 K 1 N+1 N 1 int[] okashi = new int[N+1]; okashi new int[N+1] N+1 N 1 for(int k=1; k<K+1; k++) {
			da[k][0]= keyboard.nextInt();
			for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			}
		} int k=1; int k=1; k 1 k<K+1 k K+1 K 1 k++ k++ k {
			da[k][0]= keyboard.nextInt();
			for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			}
		} {
			da[k][0]= keyboard.nextInt();
			for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			}
		} da[k][0]= keyboard.nextInt() da[k][0] da[k] da k 0 keyboard.nextInt() keyboard.nextInt keyboard for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			} int a=1; int a=1; a 1 a<da[k][0]+1 a da[k][0]+1 da[k][0] da[k] da k 0 1 a++ a++ a {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			} {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			} da[k][a] = keyboard.nextInt() da[k][a] da[k] da k a keyboard.nextInt() keyboard.nextInt keyboard okashi[da[k][a]]++ okashi[da[k][a]] okashi da[k][a] da[k] da k a int ans =0; ans 0 for(int i=1; i<N+1; i++) {
			if(okashi[i] == 0) {
				ans++;
			}
		} int i=1; int i=1; i 1 i<N+1 i N+1 N 1 i++ i++ i {
			if(okashi[i] == 0) {
				ans++;
			}
		} {
			if(okashi[i] == 0) {
				ans++;
			}
		} if(okashi[i] == 0) {
				ans++;
			} okashi[i] == 0 okashi[i] okashi i 0 {
				ans++;
			} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans keyboard.close() keyboard.close keyboard String[] args args public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N= keyboard.nextInt();
		int K= keyboard.nextInt();
		int[][] da = new int[K+1][N+1];
		int[] okashi = new int[N+1];
		
		for(int k=1; k<K+1; k++) {
			da[k][0]= keyboard.nextInt();
			for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			}
		}
		
		int ans =0;
		for(int i=1; i<N+1; i++) {
			if(okashi[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		keyboard.close();	
		
	}
} public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N= keyboard.nextInt();
		int K= keyboard.nextInt();
		int[][] da = new int[K+1][N+1];
		int[] okashi = new int[N+1];
		
		for(int k=1; k<K+1; k++) {
			da[k][0]= keyboard.nextInt();
			for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			}
		}
		
		int ans =0;
		for(int i=1; i<N+1; i++) {
			if(okashi[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		keyboard.close();	
		
	}
} Main
import java.util.*;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N= keyboard.nextInt();
		int K= keyboard.nextInt();
		int[][] da = new int[K+1][N+1];
		int[] okashi = new int[N+1];
		
		for(int k=1; k<K+1; k++) {
			da[k][0]= keyboard.nextInt();
			for(int a=1; a<da[k][0]+1; a++) {
				da[k][a] = keyboard.nextInt();
				okashi[da[k][a]]++;
			}
		}
		
		int ans =0;
		for(int i=1; i<N+1; i++) {
			if(okashi[i] == 0) {
				ans++;
			}
		}
		
		System.out.println(ans);
		keyboard.close();	
		
	}
}