#include<stdio.h>

int main() {
	int n, k;
	scanf("%d %d", &n, &k);
	int d, a;
	int cnt[100];
	for (int i = 0; i < n; i++)
		cnt[i] = 0;
	for (int i = 0; i < k; i++)
	{
		scanf("%d", &d);
		for (int j = 0; j < d; j++)
		{
			scanf("%d", &a);
			cnt[a - 1]++;
		}
	}
	int answer = 0;
	for (int i = 0; i < n; i++)
		if (cnt[i] == 0)
			answer++;
	printf("%d\n", answer);
	return 0;
}