import scala.io.StdIn._

object Helpers {
  def readIntLine = readLine.split(" ").map(_.toInt)
  def readInts(n: Int) = Array.fill(n)(readInt)

  def splitDigits(i: Int): Seq[Int] = i.toString.map(_.asDigit)

  def log[A](x: A): A = {println(x); x}

  implicit class IntImplicits(val i: Int) {
    def isEven = i % 2 == 0
    def isOdd = !isEven
  }
}

object Main extends App {
  import Helpers._

  val Array(n, k) = readIntLine
  val x = Array.fill(n)(0)

  for (_ <- Range(0, k)) {
    val d = readInt
    val as = readIntLine
    as.foreach(a => {
      x(a - 1) = 1
    })
  }

  println(x.count(_ == 0))
}

