import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();

    List<Integer> sunukes = new ArrayList<>();
    int[] treat = new int[n];

    int count = 0;

    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        sunukes.add(sc.nextInt());
      }
    }
    for (int sunuke : sunukes) {
      treat[sunuke - 1] = 1;
    }

    for (int num : treat) {
      if (num == 0) {
        count++;
      }
    }  

    System.out.println(count);

  }
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList 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();

    List<Integer> sunukes = new ArrayList<>();
    int[] treat = new int[n];

    int count = 0;

    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        sunukes.add(sc.nextInt());
      }
    }
    for (int sunuke : sunukes) {
      treat[sunuke - 1] = 1;
    }

    for (int num : treat) {
      if (num == 0) {
        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();

    List<Integer> sunukes = new ArrayList<>();
    int[] treat = new int[n];

    int count = 0;

    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        sunukes.add(sc.nextInt());
      }
    }
    for (int sunuke : sunukes) {
      treat[sunuke - 1] = 1;
    }

    for (int num : treat) {
      if (num == 0) {
        count++;
      }
    }  

    System.out.println(count);

  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();

    List<Integer> sunukes = new ArrayList<>();
    int[] treat = new int[n];

    int count = 0;

    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        sunukes.add(sc.nextInt());
      }
    }
    for (int sunuke : sunukes) {
      treat[sunuke - 1] = 1;
    }

    for (int num : treat) {
      if (num == 0) {
        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 List<Integer> sunukes = new ArrayList<>(); sunukes new ArrayList<>() int[] treat = new int[n]; treat new int[n] n int count = 0; count 0 for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        sunukes.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++) {
        sunukes.add(sc.nextInt());
      }
    } {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        sunukes.add(sc.nextInt());
      }
    } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
        sunukes.add(sc.nextInt());
      } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
        sunukes.add(sc.nextInt());
      } {
        sunukes.add(sc.nextInt());
      } sunukes.add(sc.nextInt()) sunukes.add sunukes sc.nextInt() sc.nextInt sc for (int sunuke : sunukes) {
      treat[sunuke - 1] = 1;
    } int sunuke sunukes {
      treat[sunuke - 1] = 1;
    } {
      treat[sunuke - 1] = 1;
    } treat[sunuke - 1] = 1 treat[sunuke - 1] treat sunuke - 1 sunuke 1 1 for (int num : treat) {
      if (num == 0) {
        count++;
      }
    } int num treat {
      if (num == 0) {
        count++;
      }
    } {
      if (num == 0) {
        count++;
      }
    } if (num == 0) {
        count++;
      } num == 0 num 0 {
        count++;
      } count++ count System.out.println(count) System.out.println System.out System System.out count 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();

    List<Integer> sunukes = new ArrayList<>();
    int[] treat = new int[n];

    int count = 0;

    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        sunukes.add(sc.nextInt());
      }
    }
    for (int sunuke : sunukes) {
      treat[sunuke - 1] = 1;
    }

    for (int num : treat) {
      if (num == 0) {
        count++;
      }
    }  

    System.out.println(count);

  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();

    List<Integer> sunukes = new ArrayList<>();
    int[] treat = new int[n];

    int count = 0;

    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        sunukes.add(sc.nextInt());
      }
    }
    for (int sunuke : sunukes) {
      treat[sunuke - 1] = 1;
    }

    for (int num : treat) {
      if (num == 0) {
        count++;
      }
    }  

    System.out.println(count);

  }
} Main
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();

    List<Integer> sunukes = new ArrayList<>();
    int[] treat = new int[n];

    int count = 0;

    for (int i = 0; i < k; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        sunukes.add(sc.nextInt());
      }
    }
    for (int sunuke : sunukes) {
      treat[sunuke - 1] = 1;
    }

    for (int num : treat) {
      if (num == 0) {
        count++;
      }
    }  

    System.out.println(count);

  }
}
