#include <stdio.h>

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