import java.util.*;

 // Compiler version JDK 11.0.2

  public class Main
 {
   public static void main(String args[])
   { 
     Scanner sc= new Scanner(System.in);
     int n =sc.nextInt();
     int a[]=new int[n+1];
     int k =sc.nextInt();
     while(k>0)
     {
       int d = sc.nextInt();
       for(int i=0;i<d;i++)
       {
         int b= sc.nextInt();
         a[b]++;
         
       }
       k--;
     }
     int t=0;
     for(int i =1;i<=n;i++)
     {
       if(a[i]==0)
       t++;
     }
     System.out.println(t);
   }
 }
     import java.util.*; util.* java public class Main
 {
   public static void main(String args[])
   { 
     Scanner sc= new Scanner(System.in);
     int n =sc.nextInt();
     int a[]=new int[n+1];
     int k =sc.nextInt();
     while(k>0)
     {
       int d = sc.nextInt();
       for(int i=0;i<d;i++)
       {
         int b= sc.nextInt();
         a[b]++;
         
       }
       k--;
     }
     int t=0;
     for(int i =1;i<=n;i++)
     {
       if(a[i]==0)
       t++;
     }
     System.out.println(t);
   }
 } Main public static void main(String args[])
   { 
     Scanner sc= new Scanner(System.in);
     int n =sc.nextInt();
     int a[]=new int[n+1];
     int k =sc.nextInt();
     while(k>0)
     {
       int d = sc.nextInt();
       for(int i=0;i<d;i++)
       {
         int b= sc.nextInt();
         a[b]++;
         
       }
       k--;
     }
     int t=0;
     for(int i =1;i<=n;i++)
     {
       if(a[i]==0)
       t++;
     }
     System.out.println(t);
   } main { 
     Scanner sc= new Scanner(System.in);
     int n =sc.nextInt();
     int a[]=new int[n+1];
     int k =sc.nextInt();
     while(k>0)
     {
       int d = sc.nextInt();
       for(int i=0;i<d;i++)
       {
         int b= sc.nextInt();
         a[b]++;
         
       }
       k--;
     }
     int t=0;
     for(int i =1;i<=n;i++)
     {
       if(a[i]==0)
       t++;
     }
     System.out.println(t);
   } Scanner sc= new Scanner(System.in); sc new Scanner(System.in) int n =sc.nextInt(); n sc.nextInt() sc.nextInt sc int a[]=new int[n+1]; a new int[n+1] n+1 n 1 int k =sc.nextInt(); k sc.nextInt() sc.nextInt sc while(k>0)
     {
       int d = sc.nextInt();
       for(int i=0;i<d;i++)
       {
         int b= sc.nextInt();
         a[b]++;
         
       }
       k--;
     } k>0 k 0 {
       int d = sc.nextInt();
       for(int i=0;i<d;i++)
       {
         int b= sc.nextInt();
         a[b]++;
         
       }
       k--;
     } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int i=0;i<d;i++)
       {
         int b= sc.nextInt();
         a[b]++;
         
       } int i=0; int i=0; i 0 i<d i d i++ i++ i {
         int b= sc.nextInt();
         a[b]++;
         
       } {
         int b= sc.nextInt();
         a[b]++;
         
       } int b= sc.nextInt(); b sc.nextInt() sc.nextInt sc a[b]++ a[b] a b k-- k int t=0; t 0 for(int i =1;i<=n;i++)
     {
       if(a[i]==0)
       t++;
     } int i =1; int i =1; i 1 i<=n i n i++ i++ i {
       if(a[i]==0)
       t++;
     } {
       if(a[i]==0)
       t++;
     } if(a[i]==0)
       t++; a[i]==0 a[i] a i 0 t++ t System.out.println(t) System.out.println System.out System System.out t String args[] args public class Main
 {
   public static void main(String args[])
   { 
     Scanner sc= new Scanner(System.in);
     int n =sc.nextInt();
     int a[]=new int[n+1];
     int k =sc.nextInt();
     while(k>0)
     {
       int d = sc.nextInt();
       for(int i=0;i<d;i++)
       {
         int b= sc.nextInt();
         a[b]++;
         
       }
       k--;
     }
     int t=0;
     for(int i =1;i<=n;i++)
     {
       if(a[i]==0)
       t++;
     }
     System.out.println(t);
   }
 } public class Main
 {
   public static void main(String args[])
   { 
     Scanner sc= new Scanner(System.in);
     int n =sc.nextInt();
     int a[]=new int[n+1];
     int k =sc.nextInt();
     while(k>0)
     {
       int d = sc.nextInt();
       for(int i=0;i<d;i++)
       {
         int b= sc.nextInt();
         a[b]++;
         
       }
       k--;
     }
     int t=0;
     for(int i =1;i<=n;i++)
     {
       if(a[i]==0)
       t++;
     }
     System.out.println(t);
   }
 } Main
import java.util.*;

 // Compiler version JDK 11.0.2

  public class Main
 {
   public static void main(String args[])
   { 
     Scanner sc= new Scanner(System.in);
     int n =sc.nextInt();
     int a[]=new int[n+1];
     int k =sc.nextInt();
     while(k>0)
     {
       int d = sc.nextInt();
       for(int i=0;i<d;i++)
       {
         int b= sc.nextInt();
         a[b]++;
         
       }
       k--;
     }
     int t=0;
     for(int i =1;i<=n;i++)
     {
       if(a[i]==0)
       t++;
     }
     System.out.println(t);
   }
 }
    