fun main(args : Array<String>){
    var (n,k)=readLine()!!.split(" ").map(String::toInt)
    var sunuke = Array<Boolean>(n,{false})
    for (i in 1..k){
        var okashi=readLine()!!.toInt()
        var array = readLine()!!.split(" ").map(String::toInt)
        for (a in array){
            sunuke[a-1] = true
        }
    }
    
    var ans = 0
  	sunuke.filter { it == false }.forEach { ans++ }
    print(ans.toString())
}