import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int k = in.nextInt();
		boolean[] s = new boolean[n];
		for (int i = 0; i < k; i++) {
			int d = in.nextInt();
			for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true;
		}
		int r = 0;
		for (int i = 0; i < n; i++)
			if (!s[i])
				r++;
		System.out.println(r);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int k = in.nextInt();
		boolean[] s = new boolean[n];
		for (int i = 0; i < k; i++) {
			int d = in.nextInt();
			for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true;
		}
		int r = 0;
		for (int i = 0; i < n; i++)
			if (!s[i])
				r++;
		System.out.println(r);
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int k = in.nextInt();
		boolean[] s = new boolean[n];
		for (int i = 0; i < k; i++) {
			int d = in.nextInt();
			for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true;
		}
		int r = 0;
		for (int i = 0; i < n; i++)
			if (!s[i])
				r++;
		System.out.println(r);
	} main {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int k = in.nextInt();
		boolean[] s = new boolean[n];
		for (int i = 0; i < k; i++) {
			int d = in.nextInt();
			for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true;
		}
		int r = 0;
		for (int i = 0; i < n; i++)
			if (!s[i])
				r++;
		System.out.println(r);
	} Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) int n = in.nextInt(); n in.nextInt() in.nextInt in int k = in.nextInt(); k in.nextInt() in.nextInt in boolean[] s = new boolean[n]; s new boolean[n] n for (int i = 0; i < k; i++) {
			int d = in.nextInt();
			for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true;
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			int d = in.nextInt();
			for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true;
		} {
			int d = in.nextInt();
			for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true;
		} int d = in.nextInt(); d in.nextInt() in.nextInt in for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true; int j = 0; int j = 0; j 0 j < d j d j++ j++ j s[in.nextInt() - 1] = true; s[in.nextInt() - 1] = true s[in.nextInt() - 1] s in.nextInt() - 1 in.nextInt() in.nextInt in 1 true int r = 0; r 0 for (int i = 0; i < n; i++)
			if (!s[i])
				r++; int i = 0; int i = 0; i 0 i < n i n i++ i++ i if (!s[i])
				r++; if (!s[i])
				r++; !s[i] s[i] s i r++ r System.out.println(r) System.out.println System.out System System.out r String[] args args public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int k = in.nextInt();
		boolean[] s = new boolean[n];
		for (int i = 0; i < k; i++) {
			int d = in.nextInt();
			for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true;
		}
		int r = 0;
		for (int i = 0; i < n; i++)
			if (!s[i])
				r++;
		System.out.println(r);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int k = in.nextInt();
		boolean[] s = new boolean[n];
		for (int i = 0; i < k; i++) {
			int d = in.nextInt();
			for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true;
		}
		int r = 0;
		for (int i = 0; i < n; i++)
			if (!s[i])
				r++;
		System.out.println(r);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int k = in.nextInt();
		boolean[] s = new boolean[n];
		for (int i = 0; i < k; i++) {
			int d = in.nextInt();
			for (int j = 0; j < d; j++)
				s[in.nextInt() - 1] = true;
		}
		int r = 0;
		for (int i = 0; i < n; i++)
			if (!s[i])
				r++;
		System.out.println(r);
	}
}