#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
	int N,K;
	int *SNUKE,loop,buff;
	int i,j,trick;
	char str[100000];
 
	fgets(str, sizeof(str), stdin);
	N=atoi(strtok(str," "));
	K=atoi(strtok(NULL," "));

	SNUKE=(int*)calloc(N,sizeof(int));//始めはすべて0

	for(i=0;i<K;i++){
		fgets(str, sizeof(str), stdin);
		loop=atoi(strtok(str," "));
		fgets(str, sizeof(str), stdin);
		buff=atoi(strtok(str," "));
		SNUKE[buff-1]=1;
		for(j=1;j<loop;j++){
			buff=atoi(strtok(NULL," "));
			SNUKE[buff-1]=1;
		}
	}

	trick=0;
	for(i=0;i<N;i++){
		if(SNUKE[i]==0) trick++;
	}

	printf("%d\n",trick);

	free(SNUKE);

	return 0;
}
