open System
open System.Collections.Generic

[<EntryPoint>]
let main argv =
    let [|N; K|] = stdin.ReadLine().Split() |> Array.map int

    let mutable check = new List<bool>()
    for i in [1..N] do
        check.Add false

    for i in [1..K] do
        let d = stdin.ReadLine() |> int
        let a = stdin.ReadLine().Split() |> Array.map int

        for j in [0..(d - 1)] do
            let no = a.[j]
            check.[no - 1] <- true
    
    check
    |> Seq.filter (fun x -> x = false)
    |> Seq.length
    |> printfn "%d"
    

    0