import scala.io.StdIn.readLine
import scala.io.StdIn.readInt
import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val N = sc.nextInt
  val K = sc.nextInt
  var l = new Array[Int](N)
  for {i <- 1 to K}{
    val d = sc.nextInt
    for(j <- 1 to d){
      val t = sc.nextInt
      l(t-1) = 1
    }
  }
  println(l.count(a=>a==0))

}