import std.stdio, std.string, std.conv;
import std.typecons;
import std.algorithm, std.array, std.range, std.container;
import std.math;

void main() {
	auto NK = readln.split.to!(int[]);
	auto N = NK[0], K = NK[1];
	
	bool[] flag;
	flag.length = N;
	
	foreach (i; 0 .. K) {
	    readln;
	    auto A = readln.split.to!(int[]);
	    foreach (a; A) { flag[a-1] = true; }
	}
	
	int ans;
	foreach (x; flag) {
	    if (!x) ans++;
	}
	writeln(ans);
}

