const Main = (input) => {
    const lines = input.split('\n')
    line0=lines[0].trim().split(" ")
    N=parseInt(line0[0])
    K=lines[1]
    a=new Array(N)
    for (i=2;i<lines.length;i=i+2){
        line=lines[i].trim().split(" ").map(n=>parseInt(n))
        for(j=0;j<line.length;j++){
            a[line[j]-1]=-2
        }
    }
    ans=0
    for( i=0 ;i<a.length;i++){
        if(a[i]!==-2){
            ans=ans+1
        }
    }
    console.log(ans)
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'))