import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.stdlib;

immutable int INF = 1 << 29;

void main() {
    auto s = readln.split.map!(to!int);
    auto N = s[0];
    auto K = s[1];
    auto cnt = new int[](N);
    foreach (_; 0..K) {
        auto D = readln.chomp.to!int;
        auto A = readln.split.map!(to!int).array;
        foreach (a; A) cnt[a-1] += 1;
    }

    cnt.map!(a => a == 0).sum.writeln;
}
