#include <stdio.h>

int main(void){
	int n, k,i,j,con,ab,count=0;
	scanf("%d %d", &n, &k);
	int have[n];
	for (i = 0; i < n; i++) {
		have[i] = 0;
	}

	for (i = 0; i < k; i++) {
		scanf("%d", &con);
		for (j = 0; j < con; j++) {
			scanf("%d", &ab);
			have[ab-1] = 1;
		}
	}

	for (i = 0; i < n; i++) {
		if (have[i] == 0)count++;
	}
	printf("%d", count);

	
	return 0;
}