//package atcoder;
 
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();
		
		boolean judge[] = new boolean[N];
		Arrays.fill(judge, true);
		
		for(int i=0;i<K;i++) {
			int d = sc.nextInt();
			for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			}
			//System.out.println(d);
		}
		int count = 0;
		for(int l=0;l<N;l++) {
			if(judge[l]) {
				count ++;
			}
		}
		
		System.out.println(count);
	}
} 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();
		
		boolean judge[] = new boolean[N];
		Arrays.fill(judge, true);
		
		for(int i=0;i<K;i++) {
			int d = sc.nextInt();
			for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			}
			//System.out.println(d);
		}
		int count = 0;
		for(int l=0;l<N;l++) {
			if(judge[l]) {
				count ++;
			}
		}
		
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N  = sc.nextInt();
		int K = sc.nextInt();
		
		boolean judge[] = new boolean[N];
		Arrays.fill(judge, true);
		
		for(int i=0;i<K;i++) {
			int d = sc.nextInt();
			for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			}
			//System.out.println(d);
		}
		int count = 0;
		for(int l=0;l<N;l++) {
			if(judge[l]) {
				count ++;
			}
		}
		
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int N  = sc.nextInt();
		int K = sc.nextInt();
		
		boolean judge[] = new boolean[N];
		Arrays.fill(judge, true);
		
		for(int i=0;i<K;i++) {
			int d = sc.nextInt();
			for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			}
			//System.out.println(d);
		}
		int count = 0;
		for(int l=0;l<N;l++) {
			if(judge[l]) {
				count ++;
			}
		}
		
		System.out.println(count);
	} 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 boolean judge[] = new boolean[N]; judge new boolean[N] N Arrays.fill(judge, true) Arrays.fill Arrays judge true for(int i=0;i<K;i++) {
			int d = sc.nextInt();
			for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			}
			//System.out.println(d);
		} int i=0; int i=0; i 0 i<K i K i++ i++ i {
			int d = sc.nextInt();
			for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			}
			//System.out.println(d);
		} {
			int d = sc.nextInt();
			for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			}
			//System.out.println(d);
		} int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			} int j=0; int j=0; j 0 j<d j d j++ j++ j {
				int a = sc.nextInt();
				judge[a-1] = false;
			} {
				int a = sc.nextInt();
				judge[a-1] = false;
			} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc judge[a-1] = false judge[a-1] judge a-1 a 1 false int count = 0; count 0 for(int l=0;l<N;l++) {
			if(judge[l]) {
				count ++;
			}
		} int l=0; int l=0; l 0 l<N l N l++ l++ l {
			if(judge[l]) {
				count ++;
			}
		} {
			if(judge[l]) {
				count ++;
			}
		} if(judge[l]) {
				count ++;
			} judge[l] judge l {
				count ++;
			} count ++ count System.out.println(count) System.out.println System.out System System.out count 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();
		
		boolean judge[] = new boolean[N];
		Arrays.fill(judge, true);
		
		for(int i=0;i<K;i++) {
			int d = sc.nextInt();
			for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			}
			//System.out.println(d);
		}
		int count = 0;
		for(int l=0;l<N;l++) {
			if(judge[l]) {
				count ++;
			}
		}
		
		System.out.println(count);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N  = sc.nextInt();
		int K = sc.nextInt();
		
		boolean judge[] = new boolean[N];
		Arrays.fill(judge, true);
		
		for(int i=0;i<K;i++) {
			int d = sc.nextInt();
			for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			}
			//System.out.println(d);
		}
		int count = 0;
		for(int l=0;l<N;l++) {
			if(judge[l]) {
				count ++;
			}
		}
		
		System.out.println(count);
	}
} Main
//package atcoder;
 
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();
		
		boolean judge[] = new boolean[N];
		Arrays.fill(judge, true);
		
		for(int i=0;i<K;i++) {
			int d = sc.nextInt();
			for(int j=0;j<d;j++) {
				int a = sc.nextInt();
				judge[a-1] = false;
			}
			//System.out.println(d);
		}
		int count = 0;
		for(int l=0;l<N;l++) {
			if(judge[l]) {
				count ++;
			}
		}
		
		System.out.println(count);
	}
}
