import java.util.*
import java.math.*
import kotlin.math.*

fun readLn()=readLine()!!
fun readInt()=readLn().toInt()
fun readInts()=readLn().split(" ").map{it.toInt()}
fun readLong()=readLn().toLong()
fun readLongs()=readLn().split(" ").map{it.toLong()}

val out=mutableListOf<String>()
fun printLine(s:String){out.add(s)}
fun output(){println(out.joinToString("\n"))}

fun main(){
    var (n,k)=readInts()
    var has=Array(n+1){false}
    for(i in 1..k){
        var d=readInt()
        var a=readInts()
        for(j in a)has[j]=true
    }
    var ans=0
    for(i in 1..n)if(!has[i])ans++
    printLine("$ans")
    output()
}