func main() {
    let inputs = readLine()!.split(separator: " ")
    let N = Int(inputs[0])!
    let K = Int(inputs[1])!
    var nums = Array(repeating: 0, count: N)
    for _ in 0..<K {
        let _ = readLine()!
        let A = readLine()!.split(separator: " ").map { Int($0)! }
        for a in A {
            nums[a - 1] += 1
        }
    }
    let output = nums.filter { $0 == 0 }.count
    print(output)
}

main()