function Main(input) {
    input = input.split("\n");
    tmp = input[0].split(" ");
    N = Number(tmp[0]);
    K = Number(tmp[1]);
    Students = new Array(N)
    input.shift();
    Ans = 0;
    for(i = 0; i < K; i++){
        d = Number(input[0]);
        As = input[1].split(" ");
        for(j = 0; j < As.length; j++){
            A = Number(As[j])
            Students[A-1] = d;
        }
        input.shift();
        input.shift();
    }
    for(e = 0; e < N; e++){
        if(Students[e] === undefined) Ans++
    }
    console.log(Ans)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));