#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>

int main() {
	int N, K, d;
	int A[100] = { 0 };
	int cnt = 0;

	scanf("%d %d", &N, &K);

	for (int i = 0; i < K; i++) {
		scanf("%d", &d);

		for (int j = 0; j < d; j++) {
			int num;
			scanf("%d", &num);
			A[num - 1]++;
		}
	}

	for (int i = 0; i < N; i++) if (A[i] == 0) cnt++;

	printf("%d\n", cnt);

	return 0;
}