"use strict";

const main = arg => {
    const input = arg.trim().split("\n");

    const [N, K] = input[0].split(" ").map(el => parseInt(el));
    let d = []
    let A = []
    let s = new Array(N).fill(true)
    for(let i = 1; i<=K; i++){
        let tmp = input[2*i].split(" ").map(el => parseInt(el))
        for(let el of tmp){
            s[el-1] = false
        }
    }
    let cnt = 0
    for(let el of s){
        if(el === true) cnt++
    }
    console.log(cnt)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));  