import Foundation

var input = readLine()!.split(separator: " ")
var n = Int(input[0])!
var k = Int(input[1])!

var snuke = [Bool](repeating: false, count: n)

for _ in 0 ..< k {
    _ = Int(readLine()!)!
    let snacks = readLine()!.split(separator: " ").map({Int($0)!});
    for i in snacks {
        snuke[i-1] = true;
    }
}

var ans = 0
for i in snuke { ans += i ? 0 : 1 }

print(ans)