let input = readLine()!.split(separator: " ").map { Int($0)! }
let N = input[0]
let K = input[1]

var snukes = Array(repeating: 0, count: N)
for _ in 0 ..< K {
    let _ = readLine()
    readLine()!.split(separator: " ").map { Int($0)! }.forEach {
        snukes[$0 - 1] = 1
    }
}

print(snukes.filter { $0 == 0 }.count)
