import java.util.*

fun main() {
    val snukes = mutableSetOf<Int>()
    val jin = Scanner(System.`in`)
    val n = jin.nextInt()
    val k = jin.nextInt()
    snukes.addAll(1..n)
    for (j1 in 1..k) {
        val d = jin.nextInt()
        for (j2 in 1..d) {
            snukes.remove(jin.nextInt())
        }
    }
    println(snukes.size)
}