object Main {
  def main(args: Array[String]): Unit = {
    val Array(n,k) = io.StdIn.readLine().split(" ")

    val snukes = new Array[Boolean](n.toInt)
    
    for(i <- 0 until k.toInt) {
      io.StdIn.readLine()
      val notHave = io.StdIn.readLine().split(" ").map(_.toInt)
      notHave.foreach(s => {
        snukes(s - 1) = true
      })
    }

    println(snukes.filter(b => !b).size)


  }
}