import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int K = scr.nextInt();
		int d = 0;
		int A;
		int result = 0;
		
		int []Ns = new int [N];
		
		for(int i = 0;i < K;i++) {
			d = scr.nextInt();
			for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			}
		}
		
		for(int i = 0;i < N;i++) {
			if(Ns[i] == 0) {
				result += 1;
			}
		}
		
		System.out.println(result);
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int K = scr.nextInt();
		int d = 0;
		int A;
		int result = 0;
		
		int []Ns = new int [N];
		
		for(int i = 0;i < K;i++) {
			d = scr.nextInt();
			for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			}
		}
		
		for(int i = 0;i < N;i++) {
			if(Ns[i] == 0) {
				result += 1;
			}
		}
		
		System.out.println(result);
		
	}
} Main public static void main(String[] args) {
		Scanner scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int K = scr.nextInt();
		int d = 0;
		int A;
		int result = 0;
		
		int []Ns = new int [N];
		
		for(int i = 0;i < K;i++) {
			d = scr.nextInt();
			for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			}
		}
		
		for(int i = 0;i < N;i++) {
			if(Ns[i] == 0) {
				result += 1;
			}
		}
		
		System.out.println(result);
		
	} main {
		Scanner scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int K = scr.nextInt();
		int d = 0;
		int A;
		int result = 0;
		
		int []Ns = new int [N];
		
		for(int i = 0;i < K;i++) {
			d = scr.nextInt();
			for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			}
		}
		
		for(int i = 0;i < N;i++) {
			if(Ns[i] == 0) {
				result += 1;
			}
		}
		
		System.out.println(result);
		
	} Scanner scr =new Scanner(System.in); scr new Scanner(System.in) int N = scr.nextInt(); N scr.nextInt() scr.nextInt scr int K = scr.nextInt(); K scr.nextInt() scr.nextInt scr int d = 0; d 0 int A; A int result = 0; result 0 int []Ns = new int [N]; Ns new int [N] N for(int i = 0;i < K;i++) {
			d = scr.nextInt();
			for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			}
		} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
			d = scr.nextInt();
			for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			}
		} {
			d = scr.nextInt();
			for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			}
		} d = scr.nextInt() d scr.nextInt() scr.nextInt scr for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				A = scr.nextInt();
				Ns[A-1] = 1;
			} {
				A = scr.nextInt();
				Ns[A-1] = 1;
			} A = scr.nextInt() A scr.nextInt() scr.nextInt scr Ns[A-1] = 1 Ns[A-1] Ns A-1 A 1 1 for(int i = 0;i < N;i++) {
			if(Ns[i] == 0) {
				result += 1;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if(Ns[i] == 0) {
				result += 1;
			}
		} {
			if(Ns[i] == 0) {
				result += 1;
			}
		} if(Ns[i] == 0) {
				result += 1;
			} Ns[i] == 0 Ns[i] Ns i 0 {
				result += 1;
			} result += 1 result 1 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int K = scr.nextInt();
		int d = 0;
		int A;
		int result = 0;
		
		int []Ns = new int [N];
		
		for(int i = 0;i < K;i++) {
			d = scr.nextInt();
			for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			}
		}
		
		for(int i = 0;i < N;i++) {
			if(Ns[i] == 0) {
				result += 1;
			}
		}
		
		System.out.println(result);
		
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int K = scr.nextInt();
		int d = 0;
		int A;
		int result = 0;
		
		int []Ns = new int [N];
		
		for(int i = 0;i < K;i++) {
			d = scr.nextInt();
			for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			}
		}
		
		for(int i = 0;i < N;i++) {
			if(Ns[i] == 0) {
				result += 1;
			}
		}
		
		System.out.println(result);
		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int K = scr.nextInt();
		int d = 0;
		int A;
		int result = 0;
		
		int []Ns = new int [N];
		
		for(int i = 0;i < K;i++) {
			d = scr.nextInt();
			for(int j = 0;j < d;j++) {
				A = scr.nextInt();
				Ns[A-1] = 1;
			}
		}
		
		for(int i = 0;i < N;i++) {
			if(Ns[i] == 0) {
				result += 1;
			}
		}
		
		System.out.println(result);
		
	}
}