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


//using ll = long long;
int ASC( void *a,  void *b) {
	return strcmp(*(const char **)a, *(const char **)b);//降順
}
int GCD(int a, int b) {
	if (b == 0) return a;
	else return GCD(b, a % b);
}

int main(void)
{
	int n, k;
	int okasi[100], d, keep;
	scanf("%d%d",&n,&k);
	for (int i = 1; i <= n; i++) {
		okasi[i] = 0;
	}
	for (int i = 0; i < k; i++) {
		scanf("%d",&d);
		for (int j = 0; j < d; j++) {
			scanf("%d",&keep);
			okasi[keep] = 1;
		}
	}
	int ans = 0;
	for (int i = 1; i <= n; i++) {
		if (okasi[i] != 1)
			ans++;
	}
	printf("%d", ans);
	return 0;
}