/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int k = s.nextInt();
        int[] a = new int[n];
        for(int i=0; i<k; i++)
        {
            int d = s.nextInt();
            for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            }
        }
        int c = 0;
        for(int i=0; i<a.length; i++)
        {
            if(a[i]==0)
                c++;
        }
        System.out.println(c);
    }
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int k = s.nextInt();
        int[] a = new int[n];
        for(int i=0; i<k; i++)
        {
            int d = s.nextInt();
            for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            }
        }
        int c = 0;
        for(int i=0; i<a.length; i++)
        {
            if(a[i]==0)
                c++;
        }
        System.out.println(c);
    }
} Main public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int k = s.nextInt();
        int[] a = new int[n];
        for(int i=0; i<k; i++)
        {
            int d = s.nextInt();
            for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            }
        }
        int c = 0;
        for(int i=0; i<a.length; i++)
        {
            if(a[i]==0)
                c++;
        }
        System.out.println(c);
    } main {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int k = s.nextInt();
        int[] a = new int[n];
        for(int i=0; i<k; i++)
        {
            int d = s.nextInt();
            for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            }
        }
        int c = 0;
        for(int i=0; i<a.length; i++)
        {
            if(a[i]==0)
                c++;
        }
        System.out.println(c);
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int k = s.nextInt(); k s.nextInt() s.nextInt s int[] a = new int[n]; a new int[n] n for(int i=0; i<k; i++)
        {
            int d = s.nextInt();
            for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            }
        } int i=0; int i=0; i 0 i<k i k i++ i++ i {
            int d = s.nextInt();
            for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            }
        } {
            int d = s.nextInt();
            for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            }
        } int d = s.nextInt(); d s.nextInt() s.nextInt s for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            } int j=0; int j=0; j 0 j<d j d j++ j++ j {
                int x = s.nextInt();
                a[x-1]++;
            } {
                int x = s.nextInt();
                a[x-1]++;
            } int x = s.nextInt(); x s.nextInt() s.nextInt s a[x-1]++ a[x-1] a x-1 x 1 int c = 0; c 0 for(int i=0; i<a.length; i++)
        {
            if(a[i]==0)
                c++;
        } int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
            if(a[i]==0)
                c++;
        } {
            if(a[i]==0)
                c++;
        } if(a[i]==0)
                c++; a[i]==0 a[i] a i 0 c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int k = s.nextInt();
        int[] a = new int[n];
        for(int i=0; i<k; i++)
        {
            int d = s.nextInt();
            for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            }
        }
        int c = 0;
        for(int i=0; i<a.length; i++)
        {
            if(a[i]==0)
                c++;
        }
        System.out.println(c);
    }
} public class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int k = s.nextInt();
        int[] a = new int[n];
        for(int i=0; i<k; i++)
        {
            int d = s.nextInt();
            for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            }
        }
        int c = 0;
        for(int i=0; i<a.length; i++)
        {
            if(a[i]==0)
                c++;
        }
        System.out.println(c);
    }
} Main
/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int k = s.nextInt();
        int[] a = new int[n];
        for(int i=0; i<k; i++)
        {
            int d = s.nextInt();
            for(int j=0; j<d; j++)
            {
                int x = s.nextInt();
                a[x-1]++;
            }
        }
        int c = 0;
        for(int i=0; i<a.length; i++)
        {
            if(a[i]==0)
                c++;
        }
        System.out.println(c);
    }
}
