#include<stdio.h>
int main(){
	int n_snuke;
	scanf("%d", &n_snuke);
	int trt_count[n_snuke+1];
	for(int snuke = 1; snuke <= n_snuke; snuke++)
		trt_count[snuke] = 1;

	int n_trtkinds;
	scanf("%d", &n_trtkinds);
	for(int trt_i = 1; trt_i <= n_trtkinds; trt_i++){
		int n_trt_i, trt_i_to;
		scanf("%d", &n_trt_i);
		for(int trt_i_index = 1; trt_i_index <= n_trt_i; trt_i_index++){
			scanf("%d", &trt_i_to);
			trt_count[trt_i_to] = 0;
		}
	}
	
	int ans = 0;
	for(int snuke = 1; snuke <= n_snuke; snuke++)
		ans += trt_count[snuke];
	printf("%d", ans);

	return 0;
}