/*package whatever //do not write package name here */
import java.util.*;
import java.io.*;

class Main{
	public static void main (String[] args) {
// 		System.out.println("GfG!");
		Scanner input=new Scanner(System.in);
		int n=input.nextInt();
		int k=input.nextInt();
		int[] a=new int[n+1];
		for(int i=1;i<=k;i++)
		{
		    int x=input.nextInt();
		    for(int j=1;j<=x;j++)
		    {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    }
		}
		int count=0;
		for(int i=1;i<=n;i++)
		 {
		     if(a[i]==0)
		        count++;
		  }
		  System.out.println(count);
		  input.close();
	}
} import java.util.*; util.* java import java.io.*; io.* java class Main{
	public static void main (String[] args) {
// 		System.out.println("GfG!");
		Scanner input=new Scanner(System.in);
		int n=input.nextInt();
		int k=input.nextInt();
		int[] a=new int[n+1];
		for(int i=1;i<=k;i++)
		{
		    int x=input.nextInt();
		    for(int j=1;j<=x;j++)
		    {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    }
		}
		int count=0;
		for(int i=1;i<=n;i++)
		 {
		     if(a[i]==0)
		        count++;
		  }
		  System.out.println(count);
		  input.close();
	}
} Main public static void main (String[] args) {
// 		System.out.println("GfG!");
		Scanner input=new Scanner(System.in);
		int n=input.nextInt();
		int k=input.nextInt();
		int[] a=new int[n+1];
		for(int i=1;i<=k;i++)
		{
		    int x=input.nextInt();
		    for(int j=1;j<=x;j++)
		    {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    }
		}
		int count=0;
		for(int i=1;i<=n;i++)
		 {
		     if(a[i]==0)
		        count++;
		  }
		  System.out.println(count);
		  input.close();
	} main {
// 		System.out.println("GfG!");
		Scanner input=new Scanner(System.in);
		int n=input.nextInt();
		int k=input.nextInt();
		int[] a=new int[n+1];
		for(int i=1;i<=k;i++)
		{
		    int x=input.nextInt();
		    for(int j=1;j<=x;j++)
		    {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    }
		}
		int count=0;
		for(int i=1;i<=n;i++)
		 {
		     if(a[i]==0)
		        count++;
		  }
		  System.out.println(count);
		  input.close();
	} Scanner input=new Scanner(System.in); input new Scanner(System.in) int n=input.nextInt(); n input.nextInt() input.nextInt input int k=input.nextInt(); k input.nextInt() input.nextInt input int[] a=new int[n+1]; a new int[n+1] n+1 n 1 for(int i=1;i<=k;i++)
		{
		    int x=input.nextInt();
		    for(int j=1;j<=x;j++)
		    {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    }
		} int i=1; int i=1; i 1 i<=k i k i++ i++ i {
		    int x=input.nextInt();
		    for(int j=1;j<=x;j++)
		    {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    }
		} {
		    int x=input.nextInt();
		    for(int j=1;j<=x;j++)
		    {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    }
		} int x=input.nextInt(); x input.nextInt() input.nextInt input for(int j=1;j<=x;j++)
		    {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    } int j=1; int j=1; j 1 j<=x j x j++ j++ j {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    } {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    } int y=input.nextInt(); y input.nextInt() input.nextInt input a[y]=a[y]+1 a[y] a y a[y]+1 a[y] a y 1 int count=0; count 0 for(int i=1;i<=n;i++)
		 {
		     if(a[i]==0)
		        count++;
		  } int i=1; int i=1; i 1 i<=n i n i++ i++ i {
		     if(a[i]==0)
		        count++;
		  } {
		     if(a[i]==0)
		        count++;
		  } if(a[i]==0)
		        count++; a[i]==0 a[i] a i 0 count++ count System.out.println(count) System.out.println System.out System System.out count input.close() input.close input String[] args args
/*package whatever //do not write package name here */
import java.util.*;
import java.io.*;

class Main{
	public static void main (String[] args) {
// 		System.out.println("GfG!");
		Scanner input=new Scanner(System.in);
		int n=input.nextInt();
		int k=input.nextInt();
		int[] a=new int[n+1];
		for(int i=1;i<=k;i++)
		{
		    int x=input.nextInt();
		    for(int j=1;j<=x;j++)
		    {
		        int y=input.nextInt();
		        a[y]=a[y]+1;
		    }
		}
		int count=0;
		for(int i=1;i<=n;i++)
		 {
		     if(a[i]==0)
		        count++;
		  }
		  System.out.println(count);
		  input.close();
	}
}