import java.util.Scanner

import scala.collection.mutable

object Main extends App {
  val sc = new Scanner(System.in)
  val n = sc.nextInt()
  val k = sc.nextInt()
  val hasOkashi = mutable.BitSet.empty
  (1 to k).foreach { i =>
    val d = sc.nextInt()
    (1 to d).foreach { j =>
      val sunukeNo = sc.nextInt()
      hasOkashi += sunukeNo
    }
  }
  println(n - hasOkashi.size)
}
