import java.io.{BufferedOutputStream, BufferedReader, InputStreamReader, PrintWriter}

import scala.collection.mutable

object Main{
  def main(args: Array[String]): Unit = {
    val in = new BufferedReader(new InputStreamReader(System.in))
    val out = new PrintWriter(new BufferedOutputStream(System.out))
    val Array(n, k) = in.readLine().split("\\s+").map(_.toInt)

    val snk = mutable.HashSet.empty[Int]
    for(_ <- 0 until k) {
      val _ = in.readLine()
      val as = in.readLine().split("\\s+").map(_.toInt)
      snk.addAll(as)
    }

    out.println(n - snk.size)

    out.flush()
  }
}
