import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int K = Integer.parseInt(sc.next());
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		for (int i = 0; i < K; i++) {
			int loop = Integer.parseInt(sc.next());
			for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			}
		}

		//ここまでinput
		int count = 0;
		for (int i = 0; i < N; i++) {
			if (A[i] == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int K = Integer.parseInt(sc.next());
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		for (int i = 0; i < K; i++) {
			int loop = Integer.parseInt(sc.next());
			for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			}
		}

		//ここまでinput
		int count = 0;
		for (int i = 0; i < N; i++) {
			if (A[i] == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int K = Integer.parseInt(sc.next());
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		for (int i = 0; i < K; i++) {
			int loop = Integer.parseInt(sc.next());
			for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			}
		}

		//ここまでinput
		int count = 0;
		for (int i = 0; i < N; i++) {
			if (A[i] == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int K = Integer.parseInt(sc.next());
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		for (int i = 0; i < K; i++) {
			int loop = Integer.parseInt(sc.next());
			for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			}
		}

		//ここまでinput
		int count = 0;
		for (int i = 0; i < N; i++) {
			if (A[i] == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int K = Integer.parseInt(sc.next()); K Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int A[] = new int[N]; A new int[N] N for (int i = 0; i < N; i++) {
			A[i] = 0;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = 0;
		} {
			A[i] = 0;
		} A[i] = 0 A[i] A i 0 for (int i = 0; i < K; i++) {
			int loop = Integer.parseInt(sc.next());
			for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			}
		} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
			int loop = Integer.parseInt(sc.next());
			for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			}
		} {
			int loop = Integer.parseInt(sc.next());
			for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			}
		} int loop = Integer.parseInt(sc.next()); loop Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			} int j = 0; int j = 0; j 0 j < loop j loop j++ j++ j {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			} {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			} A[Integer.parseInt(sc.next()) - 1] = 1 A[Integer.parseInt(sc.next()) - 1] A Integer.parseInt(sc.next()) - 1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc 1 1 int count = 0; count 0 for (int i = 0; i < N; i++) {
			if (A[i] == 0) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if (A[i] == 0) {
				count++;
			}
		} {
			if (A[i] == 0) {
				count++;
			}
		} if (A[i] == 0) {
				count++;
			} A[i] == 0 A[i] A i 0 {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc String[] args args public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int K = Integer.parseInt(sc.next());
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		for (int i = 0; i < K; i++) {
			int loop = Integer.parseInt(sc.next());
			for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			}
		}

		//ここまでinput
		int count = 0;
		for (int i = 0; i < N; i++) {
			if (A[i] == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();
	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int K = Integer.parseInt(sc.next());
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		for (int i = 0; i < K; i++) {
			int loop = Integer.parseInt(sc.next());
			for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			}
		}

		//ここまでinput
		int count = 0;
		for (int i = 0; i < N; i++) {
			if (A[i] == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int K = Integer.parseInt(sc.next());
		int A[] = new int[N];
		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		for (int i = 0; i < K; i++) {
			int loop = Integer.parseInt(sc.next());
			for (int j = 0; j < loop; j++) {
				A[Integer.parseInt(sc.next()) - 1] = 1;
			}
		}

		//ここまでinput
		int count = 0;
		for (int i = 0; i < N; i++) {
			if (A[i] == 0) {
				count++;
			}
		}
		System.out.println(count);
		sc.close();
	}
}
