import java.util.*;

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

    int allSunuke = sc.nextInt();
    int snackKind = sc.nextInt();

    int[] list = new int[allSunuke];
    for (int i = 0; i < snackKind; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      }
    }

    int count = 0;

    for (int i = 0; i < list.length; i++) {
      if (list[i] == 0) {
        count++;
      }
    }

    System.out.println(count);

    sc.close();
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int allSunuke = sc.nextInt();
    int snackKind = sc.nextInt();

    int[] list = new int[allSunuke];
    for (int i = 0; i < snackKind; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      }
    }

    int count = 0;

    for (int i = 0; i < list.length; i++) {
      if (list[i] == 0) {
        count++;
      }
    }

    System.out.println(count);

    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int allSunuke = sc.nextInt();
    int snackKind = sc.nextInt();

    int[] list = new int[allSunuke];
    for (int i = 0; i < snackKind; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      }
    }

    int count = 0;

    for (int i = 0; i < list.length; i++) {
      if (list[i] == 0) {
        count++;
      }
    }

    System.out.println(count);

    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);

    int allSunuke = sc.nextInt();
    int snackKind = sc.nextInt();

    int[] list = new int[allSunuke];
    for (int i = 0; i < snackKind; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      }
    }

    int count = 0;

    for (int i = 0; i < list.length; i++) {
      if (list[i] == 0) {
        count++;
      }
    }

    System.out.println(count);

    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int allSunuke = sc.nextInt(); allSunuke sc.nextInt() sc.nextInt sc int snackKind = sc.nextInt(); snackKind sc.nextInt() sc.nextInt sc int[] list = new int[allSunuke]; list new int[allSunuke] allSunuke for (int i = 0; i < snackKind; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      }
    } int i = 0; int i = 0; i 0 i < snackKind i snackKind i++ i++ i {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      }
    } {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      }
    } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      } {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      } int sunukeNumber = sc.nextInt(); sunukeNumber sc.nextInt() sc.nextInt sc list[sunukeNumber - 1]++ list[sunukeNumber - 1] list sunukeNumber - 1 sunukeNumber 1 int count = 0; count 0 for (int i = 0; i < list.length; i++) {
      if (list[i] == 0) {
        count++;
      }
    } int i = 0; int i = 0; i 0 i < list.length i list.length list list.length i++ i++ i {
      if (list[i] == 0) {
        count++;
      }
    } {
      if (list[i] == 0) {
        count++;
      }
    } if (list[i] == 0) {
        count++;
      } list[i] == 0 list[i] list i 0 {
        count++;
      } count++ count System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc String[] args args
import java.util.*;

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

    int allSunuke = sc.nextInt();
    int snackKind = sc.nextInt();

    int[] list = new int[allSunuke];
    for (int i = 0; i < snackKind; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
        int sunukeNumber = sc.nextInt();
        list[sunukeNumber - 1]++;
      }
    }

    int count = 0;

    for (int i = 0; i < list.length; i++) {
      if (list[i] == 0) {
        count++;
      }
    }

    System.out.println(count);

    sc.close();
  }
}