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

int main() {
	int N, K;
	scanf("%d %d", &N, &K);
	int *A;
	A = (int *)malloc(sizeof(int)* N);
	int i = 0, d = 0, a = 0;
	for(i = 0; i < K; i++){
		scanf("%d", &d);
		while(d > 0){
			scanf("%d", &a);
			A[a - 1]++;
			d--;
		}
	}
	int count = 0;
	for(i = 0; i < N; i++){
		if(A[i] == 0){
			count++;
		}
	}
	printf("%d\n", count);
	return 0;
}