#include<stdio.h>

int main(void){
	int N, K, d[100], a[100][100], i, j, ans[100] = {},sum=0;
	scanf("%d %d\n", &N, &K);
	for (i = 0; i < K; i++) {
		scanf("%d\n",&d[i]);
		for (j = 0; j < d[i]; j++) {
			scanf("%d", &a[i][j]);
			ans[a[i][j]-1] = 1;
		}
	}
	for (i = 0; i < N; i++) {
		if (ans[i] == 0) sum++;
	}
	printf("%d", sum);
	
	
	return 0;
}