import java.util.Scanner;

public class Main {

	public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] res = new boolean[n];
		int result = 0;
		for(int i = 0; i < k; i++){
			int d = scan.nextInt();
			for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			}
		}
		for(int i = 0; i < n; i++){
			if(res[i] == false)result++;
		}
		System.out.println(result);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] res = new boolean[n];
		int result = 0;
		for(int i = 0; i < k; i++){
			int d = scan.nextInt();
			for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			}
		}
		for(int i = 0; i < n; i++){
			if(res[i] == false)result++;
		}
		System.out.println(result);
	}
} Main public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] res = new boolean[n];
		int result = 0;
		for(int i = 0; i < k; i++){
			int d = scan.nextInt();
			for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			}
		}
		for(int i = 0; i < n; i++){
			if(res[i] == false)result++;
		}
		System.out.println(result);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] res = new boolean[n];
		int result = 0;
		for(int i = 0; i < k; i++){
			int d = scan.nextInt();
			for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			}
		}
		for(int i = 0; i < n; i++){
			if(res[i] == false)result++;
		}
		System.out.println(result);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan boolean[] res = new boolean[n]; res new boolean[n] n int result = 0; result 0 for(int i = 0; i < k; i++){
			int d = scan.nextInt();
			for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			}
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			}
		} {
			int d = scan.nextInt();
			for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			}
		} int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			} int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
				int a = scan.nextInt();
				res[a-1] = true;
			} {
				int a = scan.nextInt();
				res[a-1] = true;
			} int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan res[a-1] = true res[a-1] res a-1 a 1 true for(int i = 0; i < n; i++){
			if(res[i] == false)result++;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if(res[i] == false)result++;
		} {
			if(res[i] == false)result++;
		} if(res[i] == false)result++; res[i] == false res[i] res i false result++ result System.out.println(result) System.out.println System.out System System.out result String[] arg arg public class Main {

	public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] res = new boolean[n];
		int result = 0;
		for(int i = 0; i < k; i++){
			int d = scan.nextInt();
			for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			}
		}
		for(int i = 0; i < n; i++){
			if(res[i] == false)result++;
		}
		System.out.println(result);
	}
} public class Main {

	public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] res = new boolean[n];
		int result = 0;
		for(int i = 0; i < k; i++){
			int d = scan.nextInt();
			for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			}
		}
		for(int i = 0; i < n; i++){
			if(res[i] == false)result++;
		}
		System.out.println(result);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int k = scan.nextInt();
		boolean[] res = new boolean[n];
		int result = 0;
		for(int i = 0; i < k; i++){
			int d = scan.nextInt();
			for(int j = 0; j < d; j++){
				int a = scan.nextInt();
				res[a-1] = true;
			}
		}
		for(int i = 0; i < n; i++){
			if(res[i] == false)result++;
		}
		System.out.println(result);
	}
}
