import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

	int n = scan.nextInt();
	int k = scan.nextInt();

	int re=0;

		int[] array = new int[n];

		for(int i=0;i<k;i++) {

			int d = scan.nextInt();

			for(int j=0;j<d;j++) {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			}
		}

		for(int i:array) {
			if(i == 0)
				re++;
		}
		System.out.println(re);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

	int n = scan.nextInt();
	int k = scan.nextInt();

	int re=0;

		int[] array = new int[n];

		for(int i=0;i<k;i++) {

			int d = scan.nextInt();

			for(int j=0;j<d;j++) {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			}
		}

		for(int i:array) {
			if(i == 0)
				re++;
		}
		System.out.println(re);
	}

} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

	int n = scan.nextInt();
	int k = scan.nextInt();

	int re=0;

		int[] array = new int[n];

		for(int i=0;i<k;i++) {

			int d = scan.nextInt();

			for(int j=0;j<d;j++) {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			}
		}

		for(int i:array) {
			if(i == 0)
				re++;
		}
		System.out.println(re);
	} main {

		Scanner scan = new Scanner(System.in);

	int n = scan.nextInt();
	int k = scan.nextInt();

	int re=0;

		int[] array = new int[n];

		for(int i=0;i<k;i++) {

			int d = scan.nextInt();

			for(int j=0;j<d;j++) {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			}
		}

		for(int i:array) {
			if(i == 0)
				re++;
		}
		System.out.println(re);
	} 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 int re=0; re 0 int[] array = new int[n]; array new int[n] n for(int i=0;i<k;i++) {

			int d = scan.nextInt();

			for(int j=0;j<d;j++) {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			}
		} 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 idx = scan.nextInt();
				array[idx-1]+=1;
			}
		} {

			int d = scan.nextInt();

			for(int j=0;j<d;j++) {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			}
		} int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for(int j=0;j<d;j++) {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			} int j=0; int j=0; j 0 j<d j d j++ j++ j {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			} {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			} int idx = scan.nextInt(); idx scan.nextInt() scan.nextInt scan array[idx-1]+=1 array[idx-1] array idx-1 idx 1 1 for(int i:array) {
			if(i == 0)
				re++;
		} int i array {
			if(i == 0)
				re++;
		} {
			if(i == 0)
				re++;
		} if(i == 0)
				re++; i == 0 i 0 re++ re System.out.println(re) System.out.println System.out System System.out re String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

	int n = scan.nextInt();
	int k = scan.nextInt();

	int re=0;

		int[] array = new int[n];

		for(int i=0;i<k;i++) {

			int d = scan.nextInt();

			for(int j=0;j<d;j++) {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			}
		}

		for(int i:array) {
			if(i == 0)
				re++;
		}
		System.out.println(re);
	}

} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

	int n = scan.nextInt();
	int k = scan.nextInt();

	int re=0;

		int[] array = new int[n];

		for(int i=0;i<k;i++) {

			int d = scan.nextInt();

			for(int j=0;j<d;j++) {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			}
		}

		for(int i:array) {
			if(i == 0)
				re++;
		}
		System.out.println(re);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

	int n = scan.nextInt();
	int k = scan.nextInt();

	int re=0;

		int[] array = new int[n];

		for(int i=0;i<k;i++) {

			int d = scan.nextInt();

			for(int j=0;j<d;j++) {
				int idx = scan.nextInt();
				array[idx-1]+=1;
			}
		}

		for(int i:array) {
			if(i == 0)
				re++;
		}
		System.out.println(re);
	}

}
