program ABC166B
    implicit none
    integer(8)::N,K,d,i,j,ans,A(110)
    integer(8),allocatable,dimension(:)::S
    read*,N,K
    allocate(S(N))
    S=0
    ans=0

    do i=1,K
        read*,d
        read*,(A(j),j=1,d)
        do j=1,d
            S(A(j))=1
        end do
    end do

    do i=1,N
        if(S(i)==0)ans=ans+1
    end do

    print'(i0)',ans
end program ABC166B