#include <stdio.h>

int main(void)
{
	int kinds_of_sweets, number_of_nusuke;
	int having_sweets, not_having_sweet;
	int nusuke[100];
	int number_of_sweet[100];
	int i, j, k, l;

	scanf("%d%d", &number_of_nusuke, &kinds_of_sweets);

	for (k = 0; k < number_of_nusuke; k++)
	{
		nusuke[k] = 1;
	}

	/* お菓子の種類ごとに、そのお菓子を持っているぬすけくんを入力させる */
	for (i = 0; i < kinds_of_sweets; i++)
	{
		scanf("%d", &number_of_sweet[i]);
		for (j = 0; j < number_of_sweet[i]; j++)
		{
			scanf("%d", &having_sweets);
			nusuke[having_sweets - 1] = 0;
		}
		
	}

	not_having_sweet = 0;

	for (l = 0; l < number_of_nusuke; l++)
	{
		if (nusuke[l] == 1)
		{
			not_having_sweet++;
		}
	}
	
	printf("%d\n", not_having_sweet);

	return 0;

}