object Main extends App {
  import scala.io.StdIn._
  val Array(n,k) = readLine().split(" ").map(_.toInt)
  var a :Array[Int] = Array()
  for (i <- 1 to k) {
    readInt()
    a = a ++ readLine().split(" ").map(_.toInt)
  }
  val aSet = a.toSet
  println((1 to n).count( x => !aSet.contains(x)))
}