#include<stdio.h>

int main(void) {
	
	int n, k, ans=0;
	int a[101][101], d[101], s[101];

	scanf("%d%d", &n, &k);

	for (int i = 1; i <= k; i++) {
		scanf("%d", &d[i]);
		for (int j = 1; j <= d[i]; j++) {
			scanf("%d", &a[i][j]);
		}
	}

	for (int i = 1; i <= n; i++) {
		s[i] = 0;
	}

	for (int i = 1; i <= k; i++) {
		for (int j = 1; j <= d[i]; j++) {
			s[a[i][j]]++;
		}
	}

	for (int i = 1; i <= n; i++) {
		if(s[i] == 0) ans++;
	}

	printf("%d", ans);

	return 0;
}