#include<stdio.h>

int main(void)
{
	int a, b, d,N,K,sum=0;
	int A[101] = {0};
	scanf("%d %d", &N ,&K);

	for (int i = 0;i<K;i++) {
		scanf("%d", &d);
		for (int j = 0;j < d;j++) {
			scanf("%d",&a);
			A[a]++;
		}
	}


	for (int i = 1;i <= N;i++) {
		if (A[i] == 0)sum++;
}
	printf("%d",sum);
	return 0;
}