import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    //nextLineとnextを同時に使ったら死ぬ
    val sc = new Scanner(System.in)

    val n, k = sc.nextInt()
    val children = Array.fill(n)(false)

    (0 until k).foreach { i =>
      val d = sc.nextInt()
      (0 until d).foreach { j =>
        val a = sc.nextInt()
        children(a - 1) = true
      }

    }

    println(children.count(_ == false))
  }

  def debug(args: Any*): Unit = {
    Console.err.println(args.mkString(" "))
  }

  def printExecTime(process: => Unit): Unit = {
    val start = System.currentTimeMillis
    process
    debug("処理時間： " + (System.currentTimeMillis - start) + " ミリ秒")
  }

}
