#include <stdio.h>

int N, K;
int d[128];
int A[128][128];

int aruyo[128];

int main(void) {
	int i, j;
	int count = 0;
	if (scanf("%d%d", &N, &K) != 2) return 1;
	for (i = 0; i < K; i++) {
		if (scanf("%d", &d[i]) != 1) return 1;
		for (j = 0; j < d[i]; j++) {
			if (scanf("%d", &A[i][j]) != 1) return 1;
			aruyo[A[i][j]] = 1;
		}
	}
	for (i = 1; i <= N; i++) {
		if (!aruyo[i]) count++;
	}
	printf("%d\n", count);
	return 0;
}
