import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.HashSet;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N=sc.nextInt();
    int K=sc.nextInt();
    int count=0;
    List<Integer> As = new ArrayList<>();
    List<Integer> Bs = new ArrayList<>();
    for (int i=1;i<=N ;i++ ) {
       As.add(i);
    }
    for(int i=0;i<K;i++){
      int d=sc.nextInt();
      for (int j=0;j<d ;j++ ) {
         Bs.add(sc.nextInt());
      }
    }
    List<Integer> Cs = new ArrayList<Integer>(new HashSet<>(Bs));
       for(int i=1;i<=N;i++){
         if(!(Cs.contains(i))){
            count++;
         }
       }
       System.out.println(count);



  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.stream.Collectors; Collectors java.util.stream import java.util.HashSet; HashSet java.util class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N=sc.nextInt();
    int K=sc.nextInt();
    int count=0;
    List<Integer> As = new ArrayList<>();
    List<Integer> Bs = new ArrayList<>();
    for (int i=1;i<=N ;i++ ) {
       As.add(i);
    }
    for(int i=0;i<K;i++){
      int d=sc.nextInt();
      for (int j=0;j<d ;j++ ) {
         Bs.add(sc.nextInt());
      }
    }
    List<Integer> Cs = new ArrayList<Integer>(new HashSet<>(Bs));
       for(int i=1;i<=N;i++){
         if(!(Cs.contains(i))){
            count++;
         }
       }
       System.out.println(count);



  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N=sc.nextInt();
    int K=sc.nextInt();
    int count=0;
    List<Integer> As = new ArrayList<>();
    List<Integer> Bs = new ArrayList<>();
    for (int i=1;i<=N ;i++ ) {
       As.add(i);
    }
    for(int i=0;i<K;i++){
      int d=sc.nextInt();
      for (int j=0;j<d ;j++ ) {
         Bs.add(sc.nextInt());
      }
    }
    List<Integer> Cs = new ArrayList<Integer>(new HashSet<>(Bs));
       for(int i=1;i<=N;i++){
         if(!(Cs.contains(i))){
            count++;
         }
       }
       System.out.println(count);



  } main {
    Scanner sc = new Scanner(System.in);
    int N=sc.nextInt();
    int K=sc.nextInt();
    int count=0;
    List<Integer> As = new ArrayList<>();
    List<Integer> Bs = new ArrayList<>();
    for (int i=1;i<=N ;i++ ) {
       As.add(i);
    }
    for(int i=0;i<K;i++){
      int d=sc.nextInt();
      for (int j=0;j<d ;j++ ) {
         Bs.add(sc.nextInt());
      }
    }
    List<Integer> Cs = new ArrayList<Integer>(new HashSet<>(Bs));
       for(int i=1;i<=N;i++){
         if(!(Cs.contains(i))){
            count++;
         }
       }
       System.out.println(count);



  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc int K=sc.nextInt(); K sc.nextInt() sc.nextInt sc int count=0; count 0 List<Integer> As = new ArrayList<>(); As new ArrayList<>() List<Integer> Bs = new ArrayList<>(); Bs new ArrayList<>() for (int i=1;i<=N ;i++ ) {
       As.add(i);
    } int i=1; int i=1; i 1 i<=N i N i++ i++ i {
       As.add(i);
    } {
       As.add(i);
    } As.add(i) As.add As i for(int i=0;i<K;i++){
      int d=sc.nextInt();
      for (int j=0;j<d ;j++ ) {
         Bs.add(sc.nextInt());
      }
    } int i=0; int i=0; i 0 i<K i K i++ i++ i {
      int d=sc.nextInt();
      for (int j=0;j<d ;j++ ) {
         Bs.add(sc.nextInt());
      }
    } {
      int d=sc.nextInt();
      for (int j=0;j<d ;j++ ) {
         Bs.add(sc.nextInt());
      }
    } int d=sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j=0;j<d ;j++ ) {
         Bs.add(sc.nextInt());
      } int j=0; int j=0; j 0 j<d j d j++ j++ j {
         Bs.add(sc.nextInt());
      } {
         Bs.add(sc.nextInt());
      } Bs.add(sc.nextInt()) Bs.add Bs sc.nextInt() sc.nextInt sc List<Integer> Cs = new ArrayList<Integer>(new HashSet<>(Bs)); Cs new ArrayList<Integer>(new HashSet<>(Bs)) for(int i=1;i<=N;i++){
         if(!(Cs.contains(i))){
            count++;
         }
       } int i=1; int i=1; i 1 i<=N i N i++ i++ i {
         if(!(Cs.contains(i))){
            count++;
         }
       } {
         if(!(Cs.contains(i))){
            count++;
         }
       } if(!(Cs.contains(i))){
            count++;
         } !(Cs.contains(i)) (Cs.contains(i)) Cs.contains Cs i {
            count++;
         } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.HashSet;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N=sc.nextInt();
    int K=sc.nextInt();
    int count=0;
    List<Integer> As = new ArrayList<>();
    List<Integer> Bs = new ArrayList<>();
    for (int i=1;i<=N ;i++ ) {
       As.add(i);
    }
    for(int i=0;i<K;i++){
      int d=sc.nextInt();
      for (int j=0;j<d ;j++ ) {
         Bs.add(sc.nextInt());
      }
    }
    List<Integer> Cs = new ArrayList<Integer>(new HashSet<>(Bs));
       for(int i=1;i<=N;i++){
         if(!(Cs.contains(i))){
            count++;
         }
       }
       System.out.println(count);



  }
}
