import java.util.*;
public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int k = sc.nextInt();
      Set<Integer> sets = new HashSet<>();
      while(k-- > 0) {
        int d = sc.nextInt();
        for(int i = 0; i < d; i++)
          sets.add(sc.nextInt());
      }

      System.out.println(n - sets.size());
  }
} 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 k = sc.nextInt();
      Set<Integer> sets = new HashSet<>();
      while(k-- > 0) {
        int d = sc.nextInt();
        for(int i = 0; i < d; i++)
          sets.add(sc.nextInt());
      }

      System.out.println(n - sets.size());
  }
} Main public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int k = sc.nextInt();
      Set<Integer> sets = new HashSet<>();
      while(k-- > 0) {
        int d = sc.nextInt();
        for(int i = 0; i < d; i++)
          sets.add(sc.nextInt());
      }

      System.out.println(n - sets.size());
  } main { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int k = sc.nextInt();
      Set<Integer> sets = new HashSet<>();
      while(k-- > 0) {
        int d = sc.nextInt();
        for(int i = 0; i < d; i++)
          sets.add(sc.nextInt());
      }

      System.out.println(n - sets.size());
  } 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 Set<Integer> sets = new HashSet<>(); sets new HashSet<>() while(k-- > 0) {
        int d = sc.nextInt();
        for(int i = 0; i < d; i++)
          sets.add(sc.nextInt());
      } k-- > 0 k-- k 0 {
        int d = sc.nextInt();
        for(int i = 0; i < d; i++)
          sets.add(sc.nextInt());
      } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int i = 0; i < d; i++)
          sets.add(sc.nextInt()); int i = 0; int i = 0; i 0 i < d i d i++ i++ i sets.add(sc.nextInt()); sets.add(sc.nextInt()) sets.add sets sc.nextInt() sc.nextInt sc System.out.println(n - sets.size()) System.out.println System.out System System.out n - sets.size() n sets.size() sets.size sets String[] args args public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int k = sc.nextInt();
      Set<Integer> sets = new HashSet<>();
      while(k-- > 0) {
        int d = sc.nextInt();
        for(int i = 0; i < d; i++)
          sets.add(sc.nextInt());
      }

      System.out.println(n - sets.size());
  }
} public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int k = sc.nextInt();
      Set<Integer> sets = new HashSet<>();
      while(k-- > 0) {
        int d = sc.nextInt();
        for(int i = 0; i < d; i++)
          sets.add(sc.nextInt());
      }

      System.out.println(n - sets.size());
  }
} Main
import java.util.*;
public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int k = sc.nextInt();
      Set<Integer> sets = new HashSet<>();
      while(k-- > 0) {
        int d = sc.nextInt();
        for(int i = 0; i < d; i++)
          sets.add(sc.nextInt());
      }

      System.out.println(n - sets.size());
  }
}