let (N, K) = {a in (Int(a[0])!, Int(a[1])!)}(readLine()!.split(separator: " "))
var aru = Array(repeating: false, count: N)

for _ in 0..<K {
    let _ = readLine()!
    let A = readLine()!.split(separator: " ").map{e in Int(e)!}
    for e in A {
        aru[e - 1] = true
    }
}

print(aru.filter{x in !x}.count)

