let firstLine = readLine()!.split(separator: " ")
let N = Int(firstLine[0])!
let K = Int(firstLine[1])!

var hashSet = Set<Int>()
for i in 1...N {
  hashSet.insert(i)
}

for i in 0..<K {
  _ = readLine()!
  readLine()!.split(separator: " ").forEach { s in 
    hashSet.remove(Int(s)!)
  }
}
print(hashSet.count)