#include<stdio.h>
int main()
{
	int n, k, i, a[100] = { 0 }, j,sum=0;
	int useless;
	scanf("%d%d", &n, &k);
	for (i = 0;i < k;i++)
	{
		scanf("%d", &useless);
		getchar();
		do
		{
			scanf("%d", &j);
			a[j - 1] = 1;
		} while (getchar() != '\n');
	}
	for (i = 0;i < n;i++)
	{
		if (a[i] == 0) sum++;
	}
	printf("%d", sum);
	return 0;
}