import java.util.Scanner

fun main() {
	val scn = Scanner(System.`in`)
	val n = scn.nextInt()
	val k = scn.nextInt()
	val arr = BooleanArray(n){false}
	repeat(k) {
		val d = scn.nextInt()
		repeat(d){
			arr[scn.nextInt()-1] = true
		}
	}
	println(arr.count{!it})
}