import java.util.*
import kotlin.collections.HashMap

fun main(args: Array<String>) {
    val scan = Scanner(System.`in`)
    var (n,k) = scan.nextLine().split(" ").map{ it.trim().toInt() }.toTypedArray()
    var map = HashMap<Int,Int>()
    for(i in 1..n)
    {
        map.put(i,0)
    }

    for(i in 1..k)
    {
        var x = scan.nextLine().toInt()
        var arr = scan.nextLine().split(" ").map{ it.trim().toInt() }.toTypedArray()
        for(z in arr)
        {
            map.put(z, map.get(z)!! +1)
        }
    }

    var c = map.count {
        it.value==0
    }
    println(c)
}
